Versions in this module Expand all Collapse all v0 v0.0.1 Jul 5, 2020 Changes in this version + type Certificate [32]byte + func CertificateFromString(value string) (res Certificate) + func (crt *Certificate) UnmarshalJSON(b []byte) error + func (crt Certificate) MarshalJSON() ([]byte, error) + func (crt Certificate) String() string + func (crt Certificate) Verify(message []byte, signature []byte) (res bool) + type PrivateKey [64]byte + func GeneratePrivateKey() (res PrivateKey) + func PrivateKeyFromBase64(value string) (res PrivateKey, err error) + func (pk *PrivateKey) UnmarshalJSON(b []byte) error + func (pk PrivateKey) Base64() string + func (pk PrivateKey) Bytes() []byte + func (pk PrivateKey) Certificate() (res Certificate) + func (pk PrivateKey) Decrypt(peerKey [32]byte, message []byte) (result []byte, ok bool) + func (pk PrivateKey) Encrypt(peerKey [32]byte, message []byte) (result []byte, err error) + func (pk PrivateKey) MarshalJSON() ([]byte, error) + func (pk PrivateKey) Public() (res PublicKey) + func (pk PrivateKey) Sign(message []byte) (signature []byte) + func (pk PrivateKey) String() string + type PublicKey [32]byte + func (pub *PublicKey) UnmarshalJSON(b []byte) error + func (pub PublicKey) Bytes() []byte + func (pub PublicKey) MarshalJSON() ([]byte, error) + func (pub PublicKey) String() string