@@ -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
@@ -131,7 +131,7 @@ mod tests {
131
131
132
132
let secp_k = Secp256k1PrivateKey :: from_hex ( priv_key_hex) . unwrap ( ) ;
133
133
let op_signer = BurnchainOpSigner :: new ( secp_k) ;
134
- assert_eq ! ( expected_wif, & op_signer. get_sk_as_wif ( ) ) ;
134
+ assert_eq ! ( expected_wif, & op_signer. get_secret_key_as_wif ( ) ) ;
135
135
}
136
136
137
137
#[ test]
@@ -141,7 +141,7 @@ mod tests {
141
141
142
142
let secp_k = Secp256k1PrivateKey :: from_hex ( priv_key_hex) . unwrap ( ) ;
143
143
let op_signer = BurnchainOpSigner :: new ( secp_k) ;
144
- assert_eq ! ( expected_hex, op_signer. get_sk_as_hex ( ) ) ;
144
+ assert_eq ! ( expected_hex, op_signer. get_secret_key_as_hex ( ) ) ;
145
145
}
146
146
147
147
#[ test]
0 commit comments