Versions in this module Expand all Collapse all v0 v0.1.1 Jul 31, 2018 Changes in this version type Chain + func ChainFromDir(dir string, ia addr.IA, f func(err error)) (*Chain, error) v0.1.0 Jul 19, 2018 Changes in this version + const DefaultIssuerCertValidity + const DefaultLeafCertValidity + const EarlyUsage + const Expired + const InvalidNumFields + const InvalidSubject + const IssASNotFound + const IssCertInvalid + const IssExpiresAfter + const LeafCertInvalid + const LeafExpiresAfter + const LeafIssuedBefore + const MaxChainByteLength + const MissingField + const ReservedVersion + const UnableSigPack + const UnableValidateFields + type Certificate struct + CanIssue bool + Comment string + EncAlgorithm string + ExpirationTime uint32 + Issuer addr.IA + IssuingTime uint32 + SignAlgorithm string + Signature common.RawBytes + Subject addr.IA + SubjectEncKey common.RawBytes + SubjectSignKey common.RawBytes + TRCVersion uint64 + Version uint64 + func CertificateFromRaw(raw common.RawBytes) (*Certificate, error) + func (c *Certificate) Copy() *Certificate + func (c *Certificate) Eq(o *Certificate) bool + func (c *Certificate) JSON(indent bool) ([]byte, error) + func (c *Certificate) Sign(signKey common.RawBytes, signAlgo string) error + func (c *Certificate) String() string + func (c *Certificate) UnmarshalJSON(b []byte) error + func (c *Certificate) Verify(subject addr.IA, verifyKey common.RawBytes, signAlgo string) error + func (c *Certificate) VerifySignature(verifyKey common.RawBytes, signAlgo string) error + func (c *Certificate) VerifyTime(ts uint32) error + type Chain struct + Issuer *Certificate + Leaf *Certificate + func ChainFromFile(path string, lz4_ bool) (*Chain, error) + func ChainFromRaw(raw common.RawBytes, lz4_ bool) (*Chain, error) + func ChainFromSlice(certs []*Certificate) (*Chain, error) + func (c *Chain) Compress() (common.RawBytes, error) + func (c *Chain) Copy() *Chain + func (c *Chain) Eq(o *Chain) bool + func (c *Chain) IAVer() (addr.IA, uint64) + func (c *Chain) JSON(indent bool) ([]byte, error) + func (c *Chain) Key() *Key + func (c *Chain) String() string + func (c *Chain) UnmarshalJSON(b []byte) error + func (c *Chain) Verify(subject addr.IA, t *trc.TRC) error + type Key struct + IA addr.IA + Ver uint64 + func NewKey(ia addr.IA, ver uint64) *Key + func (k *Key) String() string