Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPair ¶
type KeyPair struct { PublicKey *PublicKey PrivateKey *PrivateKey }
KeyPair holds a public and private key for asymmetric box crypto.
type Nonce ¶
type Nonce [24]byte
Nonce is a 24-byte number that should be used once per message.
func DecodeNonce ¶
DecodeNonce decodes a nonce from its Base58 string representation.
type PublicKey ¶
type PublicKey [32]byte
PublicKey is a curve25519 public key.
func DecodePublicKey ¶
DecodePublicKey decodes a public key from its Base58 string representation.
Click to show internal directories.
Click to hide internal directories.