fix spell
This commit is contained in:
@@ -63,8 +63,8 @@ fn make_btc_address(public_key: &PublicKey) -> String {
|
|||||||
btc_addr.push(0x00 as u8);
|
btc_addr.push(0x00 as u8);
|
||||||
btc_addr.extend_from_slice(&riphemd160_sha256_pub_key);
|
btc_addr.extend_from_slice(&riphemd160_sha256_pub_key);
|
||||||
|
|
||||||
let chcksum = &calc_sha256(&calc_sha256(&btc_addr))[0..4];
|
let checksum = &calc_sha256(&calc_sha256(&btc_addr))[0..4];
|
||||||
btc_addr.extend_from_slice(chcksum);
|
btc_addr.extend_from_slice(checksum);
|
||||||
|
|
||||||
bs58::encode(&btc_addr).into_string()
|
bs58::encode(&btc_addr).into_string()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user