Versions in this module Expand all Collapse all v1 v1.0.1 May 7, 2024 v1.0.0 Apr 30, 2024 Changes in this version + type KeyPair struct + PrivateKey PrivateKey + PublicKey PublicKey + func GenerateKey() (*KeyPair, error) + type PrivateKey []byte + func DecodePrivateKey(key string) (PrivateKey, error) + func (k *PrivateKey) Encode() string + type PublicKey []byte + func DecodePublicKey(key string) (PublicKey, error) + func PublicFromPrivate(privateKey PrivateKey) (PublicKey, error) + func (k *PublicKey) Encode() string + type SharedSecret []byte + func ComputeSharedSecret(outPrivate PrivateKey, theirPublic PublicKey) (SharedSecret, error) + func (s *SharedSecret) Encode() string