File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,11 @@ impl Keypair {
147
147
self . try_into ( )
148
148
}
149
149
150
+ #[ cfg( feature = "sr25519" ) ]
151
+ pub fn try_into_sr25519 ( self ) -> Result < sr25519:: Keypair , OtherVariantError > {
152
+ self . try_into ( )
153
+ }
154
+
150
155
#[ cfg( feature = "secp256k1" ) ]
151
156
pub fn try_into_secp256k1 ( self ) -> Result < secp256k1:: Keypair , OtherVariantError > {
152
157
self . try_into ( )
Original file line number Diff line number Diff line change @@ -200,6 +200,10 @@ impl SecretKey {
200
200
Ok ( SecretKey ( secret) )
201
201
}
202
202
203
+ pub fn inner_key ( & self ) -> & RistrettoSecretKey {
204
+ & self . 0
205
+ }
206
+
203
207
// Not great, leaves the secret key in stack memory (all key types not just Sr25519)
204
208
pub ( crate ) fn to_bytes ( & self ) -> [ u8 ; 32 ] {
205
209
let mut buf = [ 0u8 ; 32 ] ;
You can’t perform that action at this time.
0 commit comments