Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidVersion is returned when invalid version has been detected. ErrInvalidVersion = errors.New("invalid version") // ErrInvalidChainID is returned when invalid chain ID has been detected. ErrInvalidChainID = errors.New("invalid chain ID") // ErrInvalidHRP is returned when invalid human readable prefix has been detected. ErrInvalidHRP = errors.New("invalid human readable prefix") // IsTestnet is used to get address IsTestnet = false // ChainID is used to get address ChainID = []byte{0x01, 0x02, 0x03, 0x04} )
Functions ¶
func CreateContractAddress ¶ added in v0.3.0
CreateContractAddress returns the contract address given owner address and nonce
func GetPubkeyHash ¶
GetPubkeyHash extracts public key hash from address
Types ¶
type Address ¶
type Address struct { PrivateKey keypair.PrivateKey PublicKey keypair.PublicKey RawAddress string }
Address contains a pair of key and a string address
func GetAddressByHash ¶ added in v0.3.0
GetAddressByHash returns the address given a 20-byte hash
func GetAddressByPubkey ¶ added in v0.3.0
GetAddressByPubkey returns the address given a public key and necessary params.
type DKGAddress ¶ added in v0.3.0
DKGAddress contains a pair of DKGkey and a DKGID
Directories ¶
Path | Synopsis |
---|---|
Package bech32 includes a Bech32 string which is at most 90 characters long and consists of: The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader.
|
Package bech32 includes a Bech32 string which is at most 90 characters long and consists of: The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader. |
Click to show internal directories.
Click to hide internal directories.