Documentation ¶
Overview ¶
description: keybox
@author: xwc1125 @date: 2020/8/18 0018
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToPubKeyRipemd160Hash ¶
通过地址获得公钥的ripemd160Hash
func BTCAddress ¶
func BTCAddress(netType BTCNetType, pubKey []byte) string
pubKey := append(private.PublicKey.X.Bytes(), private.PublicKey.Y.Bytes()...)
func Ripemd160Hash ¶
对公钥进行sha256散列和ripemd160散列,获得publickeyHash
Types ¶
type BTCNetType ¶
type BTCNetType string
const ( BTCMainNet BTCNetType = "mainnet" BTCTestNet BTCNetType = "regtest" BTCTestNet3 BTCNetType = "testnet3" BTCSimNet BTCNetType = "simnet" )
Click to show internal directories.
Click to hide internal directories.