Documentation
¶
Index ¶
Constants ¶
View Source
const PrivateKeyLength = 64
View Source
const PublicKeyLength = 32
View Source
const SeedLength = 32
View Source
const SignatureLength = 64
Variables ¶
This section is empty.
Functions ¶
func NewRandSeed ¶
Types ¶
type IKeypair ¶
type IKeypair interface {
Type() KeyType
Sign(msg []byte) ([]byte, error)
Public() IPrivateKey
Private() IPublicKey
Address() []byte
Verify(message, signature []byte) (bool, error)
}
type IPrivateKey ¶
type IPrivateKey interface {
}
type IPublicKey ¶
type IPublicKey interface {
}
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
func NewKeyPairFromSeed ¶
func (*KeyPair) Private ¶
func (kp *KeyPair) Private() PrivateKey
type PrivateKey ¶
type PrivateKey ed25519.PrivateKey
Click to show internal directories.
Click to hide internal directories.