File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/crypto/group/ristretto255 Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ workspace = true
1212
1313[dependencies ]
1414anyhow = " 1.0.89"
15- rand_core = " 0.6.4"
15+ rand_core = { version = " 0.6.4" , features = [ " getrandom " ] }
1616rand_chacha = " 0.3.1"
1717curve25519-dalek = { version = " 4.1.3" , features = [" digest" , " rand_core" ] }
1818ed25519-dalek = { version = " 2.1.1" , features = [" rand_core" ] }
Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ impl Scalar {
1414 /// # Errors
1515 /// - Cannot decode scalar.
1616 pub fn from_bytes ( bytes : [ u8 ; Self :: BYTES_SIZE ] ) -> anyhow:: Result < Scalar > {
17- IScalar :: from_canonical_bytes ( bytes)
17+ Into :: < Option < _ > > :: into ( IScalar :: from_canonical_bytes ( bytes) )
1818 . map ( Scalar )
19- . into_option ( )
2019 . ok_or ( anyhow ! ( "Cannot decode scalar." ) )
2120 }
2221
You can’t perform that action at this time.
0 commit comments