Closed NoorahSmith closed 1 year ago
This is due to Scalar::from_bits
being deprecated in curve25519-dalek v4.0.0-rc.3.
The following patch will make it compile:
diff --git a/Cargo.toml b/Cargo.toml
index c730127..aef27a4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ aead = { version = "0.5.2", default-features = false, optional = true }
arrayref = { version = "0.3.6", default-features = false }
# needs to match parity-scale-code which is "=0.7.0"
arrayvec = { version = "0.7.0", default-features = false }
-curve25519-dalek = { version = "4.0.0-rc.2", default-features = false, features = ["digest", "zeroize"] }
+curve25519-dalek = { version = "4.0.0-rc.3", default-features = false, features = ["digest", "zeroize", "precomputed-tables", "legacy_compatibility"] }
subtle = { version = "2.5.0", default-features = false }
merlin = { version = "3.0.0", default-features = false }
rand_core = { version = "0.6.2", default-features = false }
although it'd be better to remove the use of Scalar::from_bits
if possible.
..
okay. it compiled with the patch . but in order to remove Scaler from bits altogether , will need to implement something like compressedpoint. uncompress public key
no function or associated item named![bits scaler error](https://github.com/w3f/schnorrkel/assets/136467640/91c4d209-5b57-4db1-9039-e270fa4ff297)
from_bits
found for structScalar
in the current scope