@@ -38,7 +38,7 @@ impl BurnchainOpSigner {
38
38
/// # Returns
39
39
///
40
40
/// A WIF-encoded string representation of the private key.
41
- pub fn get_sk_as_wif ( & self ) -> String {
41
+ pub fn get_secret_key_as_wif ( & self ) -> String {
42
42
let hex_encoded = self . secret_key . to_hex ( ) ;
43
43
let mut as_bytes = hex_bytes ( & hex_encoded) . unwrap ( ) ;
44
44
as_bytes. insert ( 0 , 0x80 ) ;
@@ -50,7 +50,7 @@ impl BurnchainOpSigner {
50
50
/// # Returns
51
51
///
52
52
/// A hex-encoded string representation of the private key.
53
- pub fn get_sk_as_hex ( & self ) -> String {
53
+ pub fn get_secret_key_as_hex ( & self ) -> String {
54
54
self . secret_key . to_hex ( )
55
55
}
56
56
@@ -111,7 +111,7 @@ mod tests {
111
111
112
112
let secp_k = Secp256k1PrivateKey :: from_hex ( priv_key_hex) . unwrap ( ) ;
113
113
let op_signer = BurnchainOpSigner :: new ( secp_k) ;
114
- assert_eq ! ( expected_wif, & op_signer. get_sk_as_wif ( ) ) ;
114
+ assert_eq ! ( expected_wif, & op_signer. get_secret_key_as_wif ( ) ) ;
115
115
}
116
116
117
117
#[ test]
@@ -121,7 +121,7 @@ mod tests {
121
121
122
122
let secp_k = Secp256k1PrivateKey :: from_hex ( priv_key_hex) . unwrap ( ) ;
123
123
let op_signer = BurnchainOpSigner :: new ( secp_k) ;
124
- assert_eq ! ( expected_hex, op_signer. get_sk_as_hex ( ) ) ;
124
+ assert_eq ! ( expected_hex, op_signer. get_secret_key_as_hex ( ) ) ;
125
125
}
126
126
127
127
#[ test]
0 commit comments