Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AddressSize is the size of an address in bytes. AddressSize int = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func NewPrivateKey ¶
func NewPrivateKey() (*PrivateKey, error)
func NewPrivateKeyFromSeed ¶
func NewPrivateKeyFromSeed(seed []byte) (*PrivateKey, error)
func NewPrivateKeyFromString ¶
func NewPrivateKeyFromString(seed string) (*PrivateKey, error)
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
func (*PrivateKey) PublicKey ¶
func (p *PrivateKey) PublicKey() *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 SignatueFromBytes ¶
Click to show internal directories.
Click to hide internal directories.