Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrivateKeyLen = 64 SignatureLen = 64 PublicKeyLen = 32 SeedLen = 32 AddressLen = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func AddressFromBytes ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func GeneratePrivateKey ¶
func GeneratePrivateKey() *PrivateKey
func NewPrivateKeyFromSeed ¶
func NewPrivateKeyFromSeed(seed []byte) *PrivateKey
func NewPrivateKeyFromSeedString ¶
func NewPrivateKeyFromSeedString(seed string) *PrivateKey
func NewPrivateKeyFromString ¶
func NewPrivateKeyFromString(s string) *PrivateKey
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
func (*PrivateKey) Public ¶
func (p *PrivateKey) Public() *PublicKey
func (*PrivateKey) Sign ¶
func (p *PrivateKey) Sign(msg []byte) *Signature
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func PublicKeyFromBytes ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func SignatureFromBytes ¶
Click to show internal directories.
Click to hide internal directories.