Documentation
¶
Index ¶
Constants ¶
View Source
const ( PrivateKeyLength = 64 PublicKeyLength = 32 SignatureLength = 64 SeedLength = 32 AddressLength = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func GeneratePrivateKey ¶
func GeneratePrivateKey() *PrivateKey
func NewPrivateKey ¶
func NewPrivateKey() *PrivateKey
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(key []byte) *PrivateKey
func PrivateKeyFromString ¶
func PrivateKeyFromString(key string) *PrivateKey
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
func (*PrivateKey) PublicKey ¶
func (p *PrivateKey) PublicKey() *PublicKey
func (*PrivateKey) Sign ¶
func (p *PrivateKey) Sign(message string) *Signature
func (*PrivateKey) String ¶
func (p *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func PublicKeyFromBytes ¶
func PublicKeyFromString ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func SignatureFromBytes ¶
func SignatureFromString ¶
Click to show internal directories.
Click to hide internal directories.