Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const ASDecKeyFile + const ASRevKeyFile + const ASSigKeyFile + const DecKeyFile + const ErrOpen + const ErrParse + const ErrUnknown + const IssSigKeyFile + const IssuerCertKeyFile + const IssuerRevKeyFile + const MasterKey0 + const MasterKey1 + const OffKeyFile + const OnKeyFile + const RawKey + const SigKeyFile + const TRCIssuingKeyFile + const TRCOfflineKeyFile + const TRCOnlineKeyFile + var ErrNoAlgorithm = serrors.New("no algorithm") + var ErrNoKey = serrors.New("no key") + var ErrUnsupportedType = serrors.New("unsupported key type") + var ErrUnsupportedUsage = serrors.New("unsupported key usage") + var ErrWildcardIA = serrors.New("wildcard IA") + func LoadKey(file string, algo string) (common.RawBytes, error) + func PrivateKeyFile(usage Usage, version scrypto.KeyVersion) string + func PublicKeyFile(usage Usage, ia addr.IA, version scrypto.KeyVersion) string + type Conf struct + DecryptKey common.RawBytes + IssSigKey common.RawBytes + Master Master + OffRootKey common.RawBytes + OnRootKey common.RawBytes + SignKey common.RawBytes + func Load(path string, issSigKey, onKey, offKey, master bool) (*Conf, error) + func (c *Conf) String() string + type Key struct + Algorithm string + Bytes []byte + IA addr.IA + Type Type + Usage Usage + Validity scrypto.Validity + Version scrypto.KeyVersion + func KeyFromPEM(block *pem.Block) (Key, error) + func (k Key) File() string + func (k Key) PEM() pem.Block + func (k Key) String() string + type Master struct + Key0 common.RawBytes + Key1 common.RawBytes + func LoadMaster(path string) (Master, error) + func (m *Master) String() string + type Type string + const PrivateKey + const PublicKey + const SymmetricKey + func (t *Type) UnmarshalText(text []byte) error + type Usage string + const ASDecryptionKey + const ASRevocationKey + const ASSigningKey + const IssCertSigningKey + const IssRevocationKey + const TRCIssuingKey + const TRCVotingOfflineKey + const TRCVotingOnlineKey + func (u *Usage) UnmarshalText(text []byte) error