Documentation ¶
Index ¶
- func AddrBytesFromPubKeyBytes(pubKeyBytes []byte) (addrBytes []byte, checksum []byte)
- func AddrFromPubKeyBytes(pubKeyBytes []byte) string
- func CalcHash(buf []byte, hasher hash.Hash) []byte
- func CalcHash160(buf []byte) []byte
- func CalcHash256(buf []byte) []byte
- func CalcSha512(buf []byte) []byte
- func ComputeAddress(pubKeyHex string, chainHex string, path string, index int32) string
- func ComputeAddressForPrivKey(privKey string) string
- func ComputeMastersFromSeed(seed string) (string, string, string, string)
- func ComputePrivateKey(mprivHex string, chainHex string, path string, index int32) string
- func ComputeTxId(rawTxHex string) string
- func ComputeWIF(privKey string, compress bool) string
- func DerivePrivateKey(privKeyBytes []byte, chain []byte, i uint32, prime bool) ([]byte, []byte)
- func DerivePrivateKeyForPath(privKeyBytes []byte, chain []byte, path string) []byte
- func DerivePublicKey(pubKeyBytes []byte, chain []byte, i uint32) ([]byte, []byte)
- func DerivePublicKeyForPath(pubKeyBytes []byte, chain []byte, path string) []byte
- func HexDecode(str string) []byte
- func HexEncode(b []byte) string
- func I64(key []byte, data []byte) ([]byte, []byte)
- func PubKeyBytesFromPrivKeyBytes(privKeyBytes []byte, compress bool) (pubKeyBytes []byte)
- func ReverseBytes(buf []byte) []byte
- func SignMessage(privKey string, message string, compress bool) string
- func WIFFromPrivKeyBytes(privKeyBytes []byte, compress bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrFromPubKeyBytes ¶
This returns a Bitcoin-like address.
func CalcHash160 ¶
calculate hash160 which is ripemd160(sha256(data))
func CalcHash256 ¶
calculate hash256 which is sha256(sha256(data))
func ComputeAddress ¶
func ComputeMastersFromSeed ¶
returns MPK, Chain, and master secret in hex.
func ComputePrivateKey ¶
func ComputeTxId ¶
func ComputeWIF ¶
func DerivePrivateKey ¶
func DerivePrivateKeyForPath ¶
func DerivePublicKey ¶
func DerivePublicKeyForPath ¶
func ReverseBytes ¶
func WIFFromPrivKeyBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.