Documentation ¶
Index ¶
- func Base58(b []byte) string
- func Base58Decode(s string) []byte
- func Base64(b []byte) string
- func Base64Decode(s string) ([]byte, error)
- func DecodeVarIntForScript(buf []byte) (int, int)
- func DecodeVarIntForTx(buf []byte) (int, int)
- func DoubleHashB(b []byte) []byte
- func DoubleSHA256(message []byte) []byte
- func GetTxID(hexString string) string
- func Hash160(b []byte) []byte
- func JsonToAny(src interface{}, target interface{}) error
- func JsonToAny2(src interface{}, target interface{}) error
- func JsonToObject(src string, target interface{}) error
- func JsonToObject2(src string, target interface{}) error
- func LittleEndianBytesToUint32(data []byte) uint32
- func LittleEndianBytesToUint64(data []byte) uint64
- func ObjectToJson(src interface{}) (string, error)
- func PublicKeyHashToAddress(pubKeyHash string, isTestnet ...bool) string
- func PublicKeyToAddress(pubKey string, isTestnet ...bool) string
- func ReverseBytesToHex(bytesVar []byte) string
- func Ripemd160(b []byte) []byte
- func SHA256(message []byte) []byte
- func Uint32ToLittleEndianBytes(data uint32) []byte
- func ValueOf(data interface{}) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base58Decode ¶
Base58Decode returns base 58 decodes the argument and returns the result.
func Base64Decode ¶
func DoubleHashB ¶
DoubleHashB calculates hash(hash(b)) and returns the resulting bytes.
func DoubleSHA256 ¶
func LittleEndianBytesToUint32 ¶
littleEndianBytesToUint32
func LittleEndianBytesToUint64 ¶
littleEndianBytesToUint64
func PublicKeyHashToAddress ¶
func PublicKeyToAddress ¶
func ReverseBytesToHex ¶
reverseBytesToHex change the endian of the input byte array then encode it to hex string
func Uint32ToLittleEndianBytes ¶
uint32ToLittleEndianBytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.