File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ slh-dsa = { path = "./slh-dsa" }
31
31
32
32
# https://github.com/RustCrypto/traits/pull/1751
33
33
# https://github.com/RustCrypto/traits/pull/1767
34
+ # https://github.com/RustCrypto/traits/pull/1774
34
35
elliptic-curve = { git = " https://github.com/RustCrypto/traits.git" }
35
36
signature = { git = " https://github.com/RustCrypto/traits.git" }
36
37
@@ -39,6 +40,10 @@ signature = { git = "https://github.com/RustCrypto/traits.git" }
39
40
crypto-bigint = { git = " https://github.com/RustCrypto/crypto-bigint.git" }
40
41
41
42
# https://github.com/zkcrypto/ff/pull/122
42
- ff = { git = " https://github.com/pinkforest/ff.git" , branch = " bump-rand-core" }
43
+ # https://github.com/zkcrypto/ff/pull/126
44
+ # https://github.com/zkcrypto/ff/pull/127
45
+ # https://github.com/zkcrypto/ff/pull/130
46
+ ff = { git = " https://github.com/zkcrypto/ff.git" , branch = " release-0.14.0" }
47
+
43
48
# https://github.com/zkcrypto/group/pull/56
44
49
group = { git = " https://github.com/pinkforest/group.git" , branch = " bump-rand-0.9" }
Original file line number Diff line number Diff line change 85
85
NonZeroScalar :: < C > :: random ( rng) . into ( )
86
86
}
87
87
88
+ /// Generate a cryptographically random [`SigningKey`].
89
+ pub fn try_from_rng < R : TryCryptoRng + ?Sized > (
90
+ rng : & mut R ,
91
+ ) -> core:: result:: Result < Self , R :: Error > {
92
+ Ok ( NonZeroScalar :: < C > :: try_from_rng ( rng) ?. into ( ) )
93
+ }
94
+
88
95
/// Initialize signing key from a raw scalar serialized as a byte array.
89
96
pub fn from_bytes ( bytes : & FieldBytes < C > ) -> Result < Self > {
90
97
SecretKey :: < C > :: from_bytes ( bytes)
You can’t perform that action at this time.
0 commit comments