Documentation ¶
Index ¶
- Constants
- func AddrFromPubKeyBytes(coin string, 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(coin string, pubKeyHex string, chainHex string, path string, index int32) string
- func ComputeAddressForPrivKey(coin string, 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(coin string, 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(coin string, privKeyBytes []byte, compress bool) string
Constants ¶
View Source
const ( CHAINPATH_PREFIX_DEPOSIT = 0 CHAINPATH_PREFIX_CHANGE = 1 CHAINPATH_PREFIX_SWEEP = 2 CHAINPATH_PREFIX_SWEEP_DRY = 102 )
Variables ¶
This section is empty.
Functions ¶
func AddrFromPubKeyBytes ¶
func CalcHash160 ¶
func CalcHash256 ¶
func CalcSha512 ¶
func ComputeAddress ¶
func ComputeMastersFromSeed ¶
func ComputePrivateKey ¶
func ComputeTxId ¶
func DerivePrivateKey ¶
func DerivePrivateKeyForPath ¶
func DerivePublicKey ¶
func DerivePublicKeyForPath ¶
func ReverseBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.