vermethod

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VDRResolver

type VDRResolver struct {
	// contains filtered or unexported fields
}

VDRResolver resolves DID in order to find public keys for VC verification using vdr.Registry. A source of DID could be issuer of VC or holder of VP. It can be also obtained from JWS "issuer" claim or "verificationMethod" of Linked Data Proof.

func NewVDRResolver

func NewVDRResolver(vdr didResolver) *VDRResolver

NewVDRResolver creates VDRResolver.

func (*VDRResolver) ResolveVerificationMethod

func (r *VDRResolver) ResolveVerificationMethod(
	verificationMethod string,
	expectedKeyController string,
) (*VerificationMethod, error)

ResolveVerificationMethod resolves verification method by key id.

type VerificationMethod

type VerificationMethod struct {
	Type  string
	Value []byte
	JWK   *jwk.JWK
}

VerificationMethod is defined either as raw public key bytes (Value field) or as JSON Web Key.

Jump to

Keyboard shortcuts

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