Versions in this module Expand all Collapse all v1 v1.0.2 Aug 25, 2018 v1.0.1 Aug 25, 2018 v1.0.0 May 31, 2018 Changes in this version + var ErrInvalidSignature = errors.New("Invalid signature") + var ErrMalformedLicense = errors.New("Malformed License") + type License struct + Cus string + Dat json.RawMessage + Exp time.Time + Iat time.Time + Iss string + Lim int + Sub string + Typ string + func Decode(data []byte, publicKey ed25519.PublicKey) (*License, error) + func DecodeFile(path string, publicKey ed25519.PublicKey) (*License, error) + func (l *License) Encode(privateKey ed25519.PrivateKey) ([]byte, error) + func (l *License) Expired() bool