Versions in this module Expand all Collapse all v0 v0.2.0 Feb 6, 2022 Changes in this version + var ErrInvalidSignature = errors.New("invalid signature") + var ErrMalformedLicense = errors.New("malformed license") + func DecodePrivateKey(data []byte) (ed25519.PrivateKey, error) + func DecodePublicKey(data []byte) (ed25519.PublicKey, error) + func GetPrivateKey() ed25519.PrivateKey + func GetPublicKey() ed25519.PublicKey + type KeyPair struct + PrivateKey string + PublicKey string + func KeyPairGenerate() *KeyPair + type License struct + Cus string + Dat json.RawMessage + Exp time.Time + Iat time.Time + Iss string + Lim Limits + Sub uint32 + Typ string + func Decode(data []byte, publicKey ed25519.PublicKey) (*License, error) + func (l *License) Encode(privateKey ed25519.PrivateKey) ([]byte, error) + func (l *License) Expired() bool + type Limits struct + Robots bool + Tandem bool + Triaxis bool + Users int