Versions in this module Expand all Collapse all v0 v0.1.0 Jul 23, 2020 Changes in this version + const DefaultExpireTime + const KeyIDSize + var ErrNoSigner = errors.New("keygen: no signer") + type KeyGenerator struct + Curve *eccutil.Curve + ExpireTime int64 + PrivateKey *[ed25519.PrivateKeySize]byte + PublicKey *[ed25519.PublicKeySize]byte + Usage string + func New(curve func() elliptic.Curve, rand io.Reader, hash func([]byte) []byte) *KeyGenerator + func (kg KeyGenerator) GenKey() (*KeyPair, error) + type KeyPair struct + PrivateKey []byte + PublicKey PublicKey + type PublicKey struct + Expire int64 + KeyID [KeyIDSize]byte + PublicKey eccutil.Point + Signature [ed25519.SignatureSize]byte + Signer [ed25519.PublicKeySize]byte + Usage string + func (pk *PublicKey) CalcKeyID() [sha256.Size]byte + func (pk *PublicKey) Unmarshal(d []byte) (*PublicKey, error) + func (pk PublicKey) Marshal() ([]byte, error) + func (pk PublicKey) Verify(SignaturePublicKey *[ed25519.PublicKeySize]byte) bool + type PublicKeyMarshal struct + Expire int64 + KeyID []byte + PublicKeyX []byte + PublicKeyY []byte + Signature []byte + Signer []byte + Usage string