Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey [ed25519.PrivateKeySize]byte
PrivateKey is an ED25519 private key wrapper (64 bytes).
func (*PrivateKey) GetPublicKey ¶
func (pk *PrivateKey) GetPublicKey() *PublicKey
GetPublicKey returns the underlying ED25519 public key.
func (*PrivateKey) Sign ¶
func (pk *PrivateKey) Sign(message []byte) *Signature
Sign accepts a message and returns its corresponding ED25519 signature.
type PublicKey ¶
type PublicKey [ed25519.PublicKeySize]byte
PublicKey is an ED25519 public key wrapper (32 bytes).
func (PublicKey) MarshalJSON ¶
MarshalJSON returns the base64 value of an ED25519 public key.
func (*PublicKey) UnmarshalJSON ¶
UnmarshalJSON accepts a base64 value to load a ED25519 public key.
type Signature ¶
type Signature [ed25519.SignatureSize]byte
Signature is an ED25519 signature wrapper (64 bytes).
func (Signature) MarshalJSON ¶
MarshalJSON returns the base64 value of an ED25519 signature.
func (*Signature) UnmarshalJSON ¶
UnmarshalJSON accepts a base64 value to load an ED25519 signature.
Click to show internal directories.
Click to hide internal directories.