Versions in this module Expand all Collapse all v0 v0.1.0 Feb 4, 2018 v0.0.1 Jan 28, 2018 Changes in this version + func GenerateKeys() (publicKey, privateKey string) + type KeyPair struct + Private string + Public string + func FromPair(public, private string) (kp KeyPair, err error) + func FromPublic(public string) (kp KeyPair, err error) + func New() (kp KeyPair) + func (kp *KeyPair) UnmarshalJSON(b []byte) (err error) + func (kp KeyPair) Decrypt(encrypted []byte, sender KeyPair) (msg []byte, err error) + func (kp KeyPair) Encrypt(msg []byte, recipient KeyPair) (encrypted []byte, err error) + func (kp KeyPair) Hash() string + func (kp KeyPair) MarshalJSON() ([]byte, error) + func (kp KeyPair) PublicKey() (kpPublic KeyPair) + func (kp KeyPair) Signature(regionkey KeyPair) (signature string, err error) + func (kp KeyPair) Validate(signature string, sender KeyPair) (err error) + type KeyPairJSON struct + Private string + Public string