Documentation
¶
Index ¶
- Constants
- type JsonWebKey2020
- func (j JsonWebKey2020) Controller() string
- func (j JsonWebKey2020) ID() string
- func (j JsonWebKey2020) JsonLdContext() string
- func (j JsonWebKey2020) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
- func (j JsonWebKey2020) MarshalJSON() ([]byte, error)
- func (j JsonWebKey2020) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
- func (j JsonWebKey2020) Type() string
- func (j *JsonWebKey2020) UnmarshalJSON(bytes []byte) error
- func (j JsonWebKey2020) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
- func (j JsonWebKey2020) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
Constants ¶
View Source
const ( JsonLdContext = "https://w3id.org/security/suites/jws-2020/v1" Type = "JsonWebKey2020" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonWebKey2020 ¶
type JsonWebKey2020 struct {
// contains filtered or unexported fields
}
func NewJsonWebKey2020 ¶
func NewJsonWebKey2020(id string, pubkey crypto.PublicKey, controller did.DID) *JsonWebKey2020
func (JsonWebKey2020) Controller ¶
func (j JsonWebKey2020) Controller() string
func (JsonWebKey2020) ID ¶
func (j JsonWebKey2020) ID() string
func (JsonWebKey2020) JsonLdContext ¶
func (j JsonWebKey2020) JsonLdContext() string
func (JsonWebKey2020) KeyExchange ¶
func (j JsonWebKey2020) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)
func (JsonWebKey2020) MarshalJSON ¶
func (j JsonWebKey2020) MarshalJSON() ([]byte, error)
func (JsonWebKey2020) PrivateKeyIsCompatible ¶
func (j JsonWebKey2020) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool
func (JsonWebKey2020) Type ¶
func (j JsonWebKey2020) Type() string
func (*JsonWebKey2020) UnmarshalJSON ¶
func (j *JsonWebKey2020) UnmarshalJSON(bytes []byte) error
func (JsonWebKey2020) VerifyASN1 ¶
func (j JsonWebKey2020) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
func (JsonWebKey2020) VerifyBytes ¶
func (j JsonWebKey2020) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)
Click to show internal directories.
Click to hide internal directories.