Documentation ¶
Index ¶
- Constants
- func Base58CheckDecode(encoded string) ([]byte, error)
- func Base58CheckDecodeTestPrint(encoded string) ([]byte, error)
- func Base58CheckEncode(dataBytes []byte) string
- func Base58CheckEncodeHexString(version, data string) (string, error)
- func Base58CheckEncodeWithVersion(version []byte, data []byte) string
- func CheckReadableAddress(readable string) ([]byte, error)
- func CheckSignByHash32(hash32 []byte, publicKeyBytes33 []byte, signatureBytes64 []byte) (bool, error)
- func NewAddressFromPublicKey(version []byte, pubKey []byte) []byte
- func NewAddressFromPublicKeyV0(pubKey []byte) []byte
- func NewAddressReadableFromAddress(address []byte) string
- type Account
Constants ¶
View Source
const MaxPrikeyValueHex = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364140"
Variables ¶
This section is empty.
Functions ¶
func Base58CheckDecode ¶
DecodeHexString decodes the given base58check encoded string and returns the version prepended decoded string
func Base58CheckDecodeTestPrint ¶
DecodeHexString decodes the given base58check encoded string and returns the version prepended decoded string
func Base58CheckEncode ¶
func Base58CheckEncodeHexString ¶
Base58CheckEncodeHexString encodes the given version and data to a base58check encoded string
func CheckReadableAddress ¶
check address is ok ?
func CheckSignByHash32 ¶
func NewAddressFromPublicKey ¶
Types ¶
type Account ¶
type Account struct { AddressReadable string Address []byte PublicKey []byte PrivateKey []byte Private *btcec.PrivateKey }
func CreateAccountByPassword ¶
func CreateNewRandomAccount ¶
func CreateNewRandomAccount() *Account
func GetAccountByPriviteKey ¶
Click to show internal directories.
Click to hide internal directories.