jsonwebkey

package
v1.0.0-pre1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL