Documentation ¶
Index ¶
Constants ¶
View Source
const ( SignatureTypeTreasury byte = 0 SignatureTypeBLS byte = 1 )
View Source
const (
AddressSize = 21
)
Variables ¶
View Source
var ( // Human Readable Part (HRP) for address AddressHRP = "pc" // Human Readable Part (HRP) for public key PublicKeyHRP = "public" // Human Readable Part (HRP) for private key PrivateKeyHRP = "secret" // Human Readable Part (HRP) for extended public key XPublicKeyHRP = "xpublic" // Human Readable Part (HRP) for extended private key XPrivateKeyHRP = "xsecret" )
View Source
var TreasuryAddress = Address{0}
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address [AddressSize]byte
func AddressFromString ¶
AddressFromString decodes the string encoding of an address and returns the Address if text is a valid encoding for a known address type.
func (Address) Fingerprint ¶
Fingerprint returns a short string for the address useful for logger.
func (*Address) SanityCheck ¶
type PrivateKey ¶
type SignableMsg ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.