Documentation ¶
Index ¶
- func Blake2b160(data []byte) ([]byte, error)
- type Curve
- type ECKind
- type Ed25519
- func (curve Ed25519) AddressPrefix() []byte
- func (curve Ed25519) GeneratePrivateKey() ([]byte, []byte, error)
- func (curve Ed25519) GetPublicKey(privateKey []byte) ([]byte, error)
- func (curve Ed25519) Kind() ECKind
- func (curve Ed25519) PublicKeyPrefix() []byte
- func (curve Ed25519) Sign(data []byte, privateKey []byte) (Signature, error)
- func (curve Ed25519) Verify(data []byte, signature []byte, pubKey []byte) bool
- type Key
- type PubKey
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Curve ¶
type Curve interface { GeneratePrivateKey() ([]byte, []byte, error) GetPublicKey(privateKey []byte) ([]byte, error) Sign(data []byte, privateKey []byte) (Signature, error) Verify(data []byte, signature []byte, pubKey []byte) bool AddressPrefix() []byte PublicKeyPrefix() []byte Kind() ECKind }
Curve -
func NewCurveFromPrefix ¶
NewCurveFromPrefix -
type Ed25519 ¶
type Ed25519 struct {
// contains filtered or unexported fields
}
Ed25519 -
func (Ed25519) GeneratePrivateKey ¶
GeneratePrivateKey -
func (Ed25519) GetPublicKey ¶
GetPublicKey -
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key -
func NewKeyFromBytes ¶
NewKeyFromBytes -
type PubKey ¶
type PubKey struct {
// contains filtered or unexported fields
}
PubKey -
func NewPubKeyFromBase58 ¶
NewPubKeyFromBase58 -
Click to show internal directories.
Click to hide internal directories.