Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const EncryptionKeyJSON + const ErrASValidityNotCovered + const ErrInvalidCertificateType + const ErrInvalidChainLength + const ErrInvalidCrit + const ErrInvalidDistributionPoint + const ErrInvalidKeyType + const ErrInvalidProtected + const ErrInvalidSignatureType + const ErrInvalidSubject + const ErrInvalidValidityPeriod + const ErrInvalidVersion + const ErrIssuerDifferentISD + const ErrIssuerValidityNotCovered + const ErrMissingKey + const ErrUnexpectedCertificateVersion + const ErrUnexpectedIssuer + const ErrUnexpectedKey + const ErrUnexpectedTRCVersion + const ErrUnsupportedFormat + const ErrWildcardIssuer + const IssuingKeyJSON + const RevocationKeyJSON + const SignatureTypeCertificateJSON + const SignatureTypeTRCJSON + const SigningKeyJSON + const TypeASJSON + const TypeIssuerJSON + var ErrAlgorithmNotSet = errors.New("algorithm not set") + var ErrCertificateTypeNotSet = errors.New("certificate_type not set") + var ErrCritNotSet = errors.New("crit not set") + var ErrDescriptionNotSet = errors.New("description not set") + var ErrFormatVersionNotSet = errors.New("format_version not set") + var ErrIANotSet = errors.New("ia not set") + var ErrIssuerCertificateVersionNotSet = errors.New("issuer.certificate_version not set") + var ErrIssuerIANotSet = errors.New("issuer.ia not set") + var ErrIssuerNotSet = errors.New("issuer not set") + var ErrIssuerTRCVersionNotSet = errors.New("issuer.trc_version not set") + var ErrKeysNotSet = errors.New("keys not set") + var ErrNotIssuing = errors.New("not an issuing primary") + var ErrNotUTF8 = errors.New("not utf-8 encoded") + var ErrOptionalDistributionPointsNotSet = errors.New("optional_distribution_points not set") + var ErrSignatureTypeNotSet = errors.New("signature type not set") + var ErrSubjectNotSet = errors.New("subject not set") + var ErrTRCVersionNotSet = errors.New("trc_version not set") + var ErrValidityNotSet = errors.New("validity not set") + var ErrVersionNotSet = errors.New("version not set") + type AS struct + CertificateType TypeAS + Issuer IssuerCertID + func (c *AS) UnmarshalJSON(b []byte) error + func (c *AS) Validate() error + type ASVerifier struct + AS *AS + Issuer *Issuer + SignedAS *SignedAS + func (v ASVerifier) Verify() error + type Base struct + Description string + FormatVersion FormatVersion + Keys map[KeyType]scrypto.KeyMeta + OptionalDistributionPoints []addr.IA + Subject addr.IA + Validity *scrypto.Validity + Version scrypto.Version + func (b *Base) Validate() error + type Chain struct + AS SignedAS + Issuer SignedIssuer + func ParseChain(raw []byte) (Chain, error) + func (c *Chain) UnmarshalJSON(b []byte) error + func (c Chain) MarshalJSON() ([]byte, error) + type CritAS struct + func (CritAS) MarshalJSON() ([]byte, error) + func (CritAS) UnmarshalJSON(b []byte) error + type CritIssuer struct + func (CritIssuer) MarshalJSON() ([]byte, error) + func (CritIssuer) UnmarshalJSON(b []byte) error + type EncodedAS []byte + func EncodeAS(c *AS) (EncodedAS, error) + func (p *EncodedAS) Decode() (*AS, error) + type EncodedIssuer []byte + func EncodeIssuer(c *Issuer) (EncodedIssuer, error) + func (p *EncodedIssuer) Decode() (*Issuer, error) + type EncodedProtectedAS []byte + func EncodeProtectedAS(p ProtectedAS) (EncodedProtectedAS, error) + func (h *EncodedProtectedAS) Decode() (ProtectedAS, error) + type EncodedProtectedIssuer []byte + func EncodeProtectedIssuer(p ProtectedIssuer) (EncodedProtectedIssuer, error) + func (h *EncodedProtectedIssuer) Decode() (ProtectedIssuer, error) + type FormatVersion uint8 + func (v *FormatVersion) UnmarshalJSON(b []byte) error + type Issuer struct + CertificateType TypeIssuer + Issuer IssuerTRC + func (c *Issuer) UnmarshalJSON(b []byte) error + func (c *Issuer) Validate() error + type IssuerCertID struct + CertificateVersion scrypto.Version + IA addr.IA + func (i *IssuerCertID) UnmarshalJSON(b []byte) error + type IssuerTRC struct + TRCVersion scrypto.Version + func (i *IssuerTRC) UnmarshalJSON(b []byte) error + type IssuerVerifier struct + Issuer *Issuer + SignedIssuer *SignedIssuer + TRC *trc.TRC + func (v IssuerVerifier) Verify() error + type KeyType int + const EncryptionKey + const IssuingKey + const RevocationKey + const SigningKey + func (t *KeyType) UnmarshalText(b []byte) error + func (t KeyType) MarshalText() ([]byte, error) + type ProtectedAS struct + Algorithm string + CertificateVersion scrypto.Version + Crit CritAS + IA addr.IA + Type SignatureTypeCertificate + func (p *ProtectedAS) UnmarshalJSON(b []byte) error + type ProtectedIssuer struct + Algorithm string + Crit CritIssuer + TRCVersion scrypto.Version + Type SignatureTypeTRC + func (p *ProtectedIssuer) UnmarshalJSON(b []byte) error + type SignatureTypeCertificate struct + func (t *SignatureTypeCertificate) UnmarshalText(b []byte) error + func (t SignatureTypeCertificate) MarshalText() ([]byte, error) + type SignatureTypeTRC struct + func (t *SignatureTypeTRC) UnmarshalText(b []byte) error + func (t SignatureTypeTRC) MarshalText() ([]byte, error) + type SignedAS struct + Encoded EncodedAS + EncodedProtected EncodedProtectedAS + Signature common.RawBytes + func (s SignedAS) SigInput() common.RawBytes + type SignedIssuer struct + Encoded EncodedIssuer + EncodedProtected EncodedProtectedIssuer + Signature common.RawBytes + func (s SignedIssuer) SigInput() common.RawBytes + type TypeAS struct + func (TypeAS) MarshalText() ([]byte, error) + func (TypeAS) UnmarshalText(b []byte) error + type TypeIssuer struct + func (TypeIssuer) MarshalText() ([]byte, error) + func (TypeIssuer) UnmarshalText(b []byte) error