Versions in this module Expand all Collapse all v0 v0.2.0 Aug 27, 2018 Changes in this version + const EarlyAnnouncement + const EarlyUsage + const Expired + const GracePeriodPassed + const InactiveVersion + const InvalidCreationTime + const InvalidISD + const InvalidNumFields + const InvalidQuorum + const InvalidVersion + const MaxTRCByteLength + const MissingField + const ReservedVersion + const SignatureMissing + const UnableSigPack + const UnableValidateFields + type Addr struct + IA addr.IA + IP net.IP + func (a *Addr) MarshalJSON() ([]byte, error) + func (a *Addr) ParseString(addr_ string) error + func (a *Addr) String() string + func (a *Addr) UnmarshalJSON(b []byte) error + type CertLog struct + Addr *Addr + Certificate common.RawBytes + func (c *CertLog) MarshalJSON() ([]byte, error) + func (c *CertLog) UnmarshalJSON(b []byte) error + type CoreAS struct + OfflineKey common.RawBytes + OfflineKeyAlg string + OnlineKey common.RawBytes + OnlineKeyAlg string + func (t *CoreAS) UnmarshalJSON(b []byte) error + type CoreASMap map[addr.IA]*CoreAS + func (c CoreASMap) ASList() []addr.IA + func (c CoreASMap) Contains(a addr.IA) bool + type Key struct + ISD addr.ISD + Ver uint64 + func NewKey(isd addr.ISD, ver uint64) *Key + func (k *Key) String() string + type Rains struct + OnlineKey common.RawBytes + OnlineKeyAlg string + RootRAINSKey common.RawBytes + TRCSrv []*Addr + type RootCA struct + ARPKIKey common.RawBytes + ARPKISrv []*Addr + Certificate common.RawBytes + OnlineKey common.RawBytes + OnlineKeyAlg string + TRCSrv []*Addr + type TRC struct + CertLogs map[string]*CertLog + CoreASes CoreASMap + CreationTime uint32 + Description string + ExpirationTime uint32 + GracePeriod uint32 + ISD addr.ISD + Quarantine bool + QuorumCAs uint32 + QuorumTRC uint32 + RAINS *Rains + RootCAs map[string]*RootCA + Signatures map[string]common.RawBytes + ThresholdEEPKI uint32 + Version uint64 + func TRCFromDir(dir string, isd addr.ISD, f func(err error)) (*TRC, error) + func TRCFromFile(path string, lz4_ bool) (*TRC, error) + func TRCFromRaw(raw common.RawBytes, lz4_ bool) (*TRC, error) + func (t *TRC) Compress() (common.RawBytes, error) + func (t *TRC) IsActive(maxTRC *TRC) error + func (t *TRC) IsdVer() (addr.ISD, uint64) + func (t *TRC) JSON(indent bool) ([]byte, error) + func (t *TRC) JSONEquals(other *TRC) (bool, error) + func (t *TRC) Key() *Key + func (t *TRC) Sign(name string, signKey common.RawBytes, signAlgo string) error + func (t *TRC) String() string + func (t *TRC) UnmarshalJSON(b []byte) error + func (t *TRC) Verify(trust *TRC) (*TRCVerResult, error) + type TRCVerResult struct + Failed map[addr.IA]error + Quorum uint32 + Verified []addr.IA + func (tvr *TRCVerResult) QuorumOk() bool