Versions in this module Expand all Collapse all v0 v0.0.3 Feb 7, 2021 Changes in this version + const BTCMsgSignaturePrefixMagic + const BitcoinpayMsgSignaturePrefixMagic + var BitcoinpayMainnetBip32Version = bip32.Bip32Version + var BitcoinpayMixnetBip32Version = bip32.Bip32Version + var BitcoinpayPrivnetBip32Version = bip32.Bip32Version + var BitcoinpayTestnetBip32Version = bip32.Bip32Version + func Base58CheckDecode(mode, hasher string, versionSize, cksumSize int, input string, ...) + func Base58CheckEncode(version []byte, mode string, hasher string, cksumSize int, input string) + func Base58Decode(input string) + func Base58Encode(input string) + func Base64Decode(input string) + func Base64Encode(input string) + func Bitcoin160(input string) + func Blake256(input string) + func Blake2b256(input string) + func Blake2b512(input string) + func BuildMsgHash(mode string, msg string) []byte + func CalcHash160(mode string, data []byte) []byte + func CompactToGPS(compactS string, blockTime, scale int, printDetail bool) + func CompactToHashrate(input, unit string, printDetail bool, blocktime int) + func CompactToTarget(input, powtype string) + func DecodeAddr(mode string, addrStr string) ([]byte, error) + func DecodeSignature(signatureType string, signStr string) + func DecodeWIF(wif string) ([]byte, bool, error) + func Dump(s *rlp.Stream, depth int, buffer *bytes.Buffer) (*bytes.Buffer, error) + func EcNew(curve string, entropyStr string) (string, error) + func EcNewSTDO(curve string, entropyStr string) + func EcPrivateKeyToEcPublicKey(uncompressed bool, privateKeyStr string) (string, error) + func EcPrivateKeyToEcPublicKeySTDO(uncompressed bool, privateKeyStr string) + func EcPrivateKeyToWif(uncompressed bool, privateKeyStr string) + func EcPubKeyToAddress(version string, pubkey string) (string, error) + func EcPubKeyToAddressSTDO(version []byte, pubkey string) + func EcScriptKeyToAddress(version string, pubkey string) (string, error) + func EncodeWIF(uncompressed bool, privateKeyStr string) (string, error) + func ErrExit(err error) + func GPSToCompact(gps string, blockTime, scale int) + func GetBip32NetworkInfo(rawVersionByte []byte) string + func GetHashrate(hashBig *big.Int, unit string) (string, string) + func Hash160(input string) + func HashrateToCompact(difficulty string, blocktime int) + func HdDecode(keyStr string) + func HdDerive(hard bool, index uint32, path wallet.DerivationPath, ...) + func HdKeyToEcKey(version bip32.Bip32Version, keyStr string) + func HdNewMasterPrivateKey(version bip32.Bip32Version, entropyStr string) + func HdPrivateKeyToHdPublicKey(version bip32.Bip32Version, privateKeyStr string) + func IsASCII(b []byte) bool + func Keccak256(input string) + func MnemonicNew(entropyStr string) + func MnemonicToEntropy(mnemonicStr string) + func MnemonicToSeed(passphrase string, mnemonicStr string) + func MsgSign(mode string, showSignDetail bool, wif string, msg string, showDetails bool) + func NewEntropy(size uint) (string, error) + func Ripemd160(input string) + func RlpDecode(input string) + func RlpEncode(input string) + func Sha256(input string) + func Sha3_256(input string) + func TargetToCompact(input, powtype string) + func TxDecode(network string, rawTxStr string) + func TxEncode(version uint32, lockTime uint32, timestamp *time.Time, ...) (string, error) + func TxEncodeSTDO(version TxVersionFlag, lockTime TxLockTimeFlag, txIn TxInputsFlag, ...) + func TxSign(privkeyStr string, rawTxStr string, network string) (string, error) + func TxSignSTDO(privkeyStr string, rawTxStr string, network string) + func VerifyMsgSignature(mode string, addrStr string, signStr string, msgStr string) + func WifToEcPrivateKey(wif string) + func WifToEcPubkey(uncompressed bool, wif string) + func Ws(n int) string + type Bip32VersionFlag struct + Version bip32.Bip32Version + func (v *Bip32VersionFlag) Set(versionFlag string) error + func (v *Bip32VersionFlag) String() string + type BitcoinpayBase58checkVersionFlag struct + Ver []byte + func (n *BitcoinpayBase58checkVersionFlag) Set(s string) error + func (n *BitcoinpayBase58checkVersionFlag) String() string + type DerivePathFlag struct + Path wallet.DerivationPath + func (d *DerivePathFlag) Set(s string) error + func (d *DerivePathFlag) String() string + type TxInputsFlag struct + func (v *TxInputsFlag) Set(s string) error + func (v TxInputsFlag) String() string + type TxLockTimeFlag uint32 + func (lt *TxLockTimeFlag) Set(s string) error + func (lt TxLockTimeFlag) String() string + type TxOutputsFlag struct + func (of *TxOutputsFlag) Set(s string) error + func (of TxOutputsFlag) String() string + type TxVersionFlag uint32 + func (ver *TxVersionFlag) Set(s string) error + func (ver TxVersionFlag) String() string