Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TRC ¶
type TRC struct { ISD addr.ISD `toml:"isd"` Description string `toml:"description"` SerialVersion scrypto.Version `toml:"serial_version"` BaseVersion scrypto.Version `toml:"base_version"` VotingQuorum uint8 `toml:"voting_quorum"` GracePeriod util.DurWrap `toml:"grace_period"` NoTrustReset bool `toml:"no_trust_reset"` Validity Validity `toml:"validity"` CoreASes []addr.AS `toml:"core_ases"` AuthoritativeASes []addr.AS `toml:"authoritative_ases"` CertificateFiles []string `toml:"cert_files"` Votes []int `toml:"votes"` // contains filtered or unexported fields }
TRC holds the TRC configuration.
func LoadTRC ¶
LoadTRC loads the TRC configuration from the provided file. The contents are already validated.
func (*TRC) Certificates ¶
func (cfg *TRC) Certificates() ([]*x509.Certificate, error)
Certificates returns the specified certificates.
Click to show internal directories.
Click to hide internal directories.