Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + func ASFile(dir string, ia addr.IA, version scrypto.Version) string + func AllTRCFiles(dir string, isd addr.ISD) string + func IssuerFile(dir string, ia addr.IA, version scrypto.Version) string + func KeysFile(dir string, ia addr.IA) string + func TRCFile(dir string, isd addr.ISD, version scrypto.Version) string + type AS struct + Description string + EncryptionKeyVersion *scrypto.KeyVersion + IssuerCertVersion scrypto.Version + IssuerIA addr.IA + OptDistPoints []addr.IA + RevocationKeyVersion *scrypto.KeyVersion + SigningKeyVersion *scrypto.KeyVersion + Validity Validity + Version scrypto.Version + func LoadAS(file string) (AS, error) + func (cfg AS) Encode(w io.Writer) error + func (cfg AS) Validate() error + type Issuer struct + Description string + IssuingKeyVersion *scrypto.KeyVersion + OptDistPoints []addr.IA + RevocationKeyVersion *scrypto.KeyVersion + TRCVersion scrypto.Version + Validity Validity + Version scrypto.Version + func LoadIssuer(file string) (Issuer, error) + func (cfg Issuer) Encode(w io.Writer) error + func (cfg Issuer) Validate() error + type KeyMeta struct + Algorithm string + Validity Validity + func (m KeyMeta) Validate() error + type Keys struct + AS map[cert.KeyType]map[scrypto.KeyVersion]KeyMeta + Issuer map[cert.KeyType]map[scrypto.KeyVersion]KeyMeta + Primary map[trc.KeyType]map[scrypto.KeyVersion]KeyMeta + func LoadKeys(file string) (Keys, error) + func (k Keys) Encode(w io.Writer) error + func (k Keys) Validate() error + type Primary struct + Attributes trc.Attributes + IssuingKeyVersion *scrypto.KeyVersion + VotingOfflineKeyVersion *scrypto.KeyVersion + VotingOnlineKeyVersion *scrypto.KeyVersion + func (p Primary) Validate() error + type TRC2 struct + BaseVersion scrypto.Version + Description string + GracePeriod util.DurWrap + PrimaryASes map[addr.AS]Primary + TrustResetAllowed *bool + Validity Validity + Version scrypto.Version + Votes []addr.AS + VotingQuorum uint16 + func LoadTRC(file string) (TRC2, error) + func (cfg TRC2) Encode(w io.Writer) error + func (cfg TRC2) Validate() error + type Validity struct + NotBefore uint32 + Validity util.DurWrap + func (v Validity) Eval(notBefore time.Time) scrypto.Validity + func (v Validity) Validate() error