Documentation ¶
Index ¶
- func Base58Decode(input []byte) []byte
- func Base58Encode(input []byte) []byte
- func ComputeMerklePath(leaves []string, leafIndex uint32) []string
- func ComputeMerkleRoot(leaves []string) string
- func ComputeMerkleRootFromPath(leafHash string, merklePath []string, leafIndex uint32) string
- func GenerateAddrByPubkey(publicKey []byte) []byte
- func GeneratePubkeyByPrvkey(p []byte) ([]byte, error)
- func HashPublicKey(publicKey []byte) []byte
- func IntToHex(num int64) []byte
- func NewKeyPair() ([]byte, []byte)
- func ReverseBytes(data []byte)
- func Sign(pkBytes []byte, data []byte, isHash bool) string
- func Verify(pubkey, sig, data []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeMerklePath ¶
func ComputeMerkleRoot ¶
func GenerateAddrByPubkey ¶
GenerateAddrByPubkey 计算公钥对应的地址
func GeneratePubkeyByPrvkey ¶
GeneratePubkeyByPrvkey 根据私钥计算公钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.