Versions in this module Expand all Collapse all v0 v0.5.0 Mar 30, 2020 Changes in this version + const RevocationKey + const SigningKey + var ErrInvalidKeyType = serrors.New("invalid key type") + var ErrMissingProtectedField = serrors.New("missing protected field") + var ErrNotUTF8 = serrors.New("not utf-8 encoded") + type CritRequest struct + func (CritRequest) MarshalJSON() ([]byte, error) + func (CritRequest) UnmarshalJSON(b []byte) error + type EncodedProtected string + func EncodeProtected(p Protected) (EncodedProtected, error) + func (e EncodedProtected) Decode() (Protected, error) + type EncodedRequest string + func EncodeRequest(r *Request) (EncodedRequest, error) + func (e EncodedRequest) Decode() (Request, error) + type EncodedRequestInfo string + func EncodeRequestInfo(r *RequestInfo) (EncodedRequestInfo, error) + func (e EncodedRequestInfo) Decode() (RequestInfo, error) + type KeyMeta struct + Key []byte + type KeyType string + func (t *KeyType) UnmarshalText(b []byte) error + func (t KeyType) MarshalText() ([]byte, error) + func (t KeyType) Validate() error + type Keys struct + Revocation KeyMeta + Signing KeyMeta + type POP struct + Protected EncodedProtected + Signature scrypto.JWSignature + func (p POP) SigInput(info EncodedRequestInfo) []byte + type Protected struct + Algorithm string + Crit CritRequest + KeyType KeyType + KeyVersion scrypto.KeyVersion + func (p *Protected) UnmarshalJSON(b []byte) error + type Request struct + Encoded EncodedRequestInfo + POPs []POP + type RequestInfo struct + Description string + FormatVersion cert.FormatVersion + Issuer addr.IA + Keys Keys + OptionalDistributionPoints []addr.IA + RequestTime util.UnixTime + Subject addr.IA + Validity *scrypto.Validity + Version scrypto.Version + type SignedRequest struct + Encoded EncodedRequest + EncodedProtected EncodedProtected + Signature scrypto.JWSignature + func ParseSignedRequest(raw []byte) (SignedRequest, error) + func (s SignedRequest) SigInput() []byte