Documentation ¶
Index ¶
- Constants
- type Chain
- type PrivateKey
- func (p *PrivateKey) FromBytes(key []byte) error
- func (p *PrivateKey) FromString(key string) error
- func (p *PrivateKey) FromWIF(wif string) error
- func (p *PrivateKey) ToBytes() []byte
- func (p *PrivateKey) ToPublicKey() *PublicKey
- func (p *PrivateKey) ToPublicKeyString() string
- func (p *PrivateKey) ToString() string
- func (p *PrivateKey) ToWIF() string
- type PublicKey
Constants ¶
View Source
const ( ADDRESS_PREFIX string = "STM" CHAIN_ID string = "0000000000000000000000000000000000000000000000000000000000000000" TEST_CHAIN_ID string = "18dcf0a285365fc58b71f18b3d3fec954aa0c141c44e4e5cb4cf777b9eab274e" )
View Source
const ( // ADDRESS_PREFIX = "your_address_prefix_here" ChecksumLength = 4 PrefixLength = len(ADDRESS_PREFIX) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
func (*PrivateKey) FromBytes ¶
func (p *PrivateKey) FromBytes(key []byte) error
func (*PrivateKey) FromString ¶
func (p *PrivateKey) FromString(key string) error
func (*PrivateKey) FromWIF ¶
func (p *PrivateKey) FromWIF(wif string) error
func (*PrivateKey) ToBytes ¶
func (p *PrivateKey) ToBytes() []byte
func (*PrivateKey) ToPublicKey ¶
func (p *PrivateKey) ToPublicKey() *PublicKey
func (*PrivateKey) ToPublicKeyString ¶
func (p *PrivateKey) ToPublicKeyString() string
func (*PrivateKey) ToString ¶
func (p *PrivateKey) ToString() string
func (*PrivateKey) ToWIF ¶
func (p *PrivateKey) ToWIF() string
type PublicKey ¶
type PublicKey struct {
Key *secp256k1.PublicKey
}
func (*PublicKey) FromPrivateKey ¶
func (p *PublicKey) FromPrivateKey(privateKey *PrivateKey)
func (*PublicKey) FromString ¶
Click to show internal directories.
Click to hide internal directories.