Versions in this module Expand all Collapse all v0 v0.0.1 Jun 20, 2020 Changes in this version + func Decrypt(key crypto.PrivateKey, data []byte) (decrypted []byte, err error) + func Encrypt(key crypto.PublicKey, data []byte) (encrypted []byte, err error) + type PrivateKey struct + D []byte + func GenerateKey() (*PrivateKey, error) + func KeyFromString(private string) (*PrivateKey, error) + func (key PrivateKey) String() string + type PublicKey struct + X *big.Int + Y *big.Int + func PublicKeyFromString(public string) (*PublicKey, error) + func (key PublicKey) String() string