proof

package
v0.0.0-...-bd860cc Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CWTProofType is the proof type for CWT.
	CWTProofType = "application/openid4vci-proof+cwt"

	// COSEKeyHeader is the header for COSE key.
	COSEKeyHeader = "COSE_Key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTProofDescriptor

type JWTProofDescriptor interface {
	JWTAlgorithm() string
	CWTAlgorithm() cose.Algorithm

	SupportedVerificationMethods() []SupportedVerificationMethod
}

JWTProofDescriptor describes jwt proof.

type LDProofDescriptor

type LDProofDescriptor interface {
	// GetCanonicalDocument will return normalized/canonical version of the document
	GetCanonicalDocument(doc map[string]interface{}, opts ...processor.Opts) ([]byte, error)

	// GetDigest returns document digest.
	GetDigest(doc []byte) []byte

	// ProofType return proof type.
	ProofType() string

	SupportedVerificationMethods() []SupportedVerificationMethod
}

LDProofDescriptor describes ld proof.

type SupportedVerificationMethod

type SupportedVerificationMethod struct {
	VerificationMethodType string // verification method type from did. E.g. Ed25519VerificationKey2020, JsonWebKey2020.
	KMSKeyType             kms.KeyType
	JWKKeyType             string
	JWKCurve               string
	RequireJWK             bool
}

SupportedVerificationMethod describes verification methods that supported by proof checker.

Directories

Path Synopsis
jwtproofs
ldproofs
ecdsasecp256k1signature2019
Package ecdsasecp256k1signature2019 implements the EcdsaSecp256k1Signature2019 signature suite for the Linked Data Signatures specification (https://w3c-dvcg.github.io/lds-ecdsa-secp256k1-2019/).
Package ecdsasecp256k1signature2019 implements the EcdsaSecp256k1Signature2019 signature suite for the Linked Data Signatures specification (https://w3c-dvcg.github.io/lds-ecdsa-secp256k1-2019/).
ed25519signature2018
Package ed25519signature2018 implements the Ed25519Signature2018 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
Package ed25519signature2018 implements the Ed25519Signature2018 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
ed25519signature2020
Package ed25519signature2020 implements the Ed25519Signature2020 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
Package ed25519signature2020 implements the Ed25519Signature2020 signature suite for the Linked Data Signatures [LD-SIGNATURES] specification.
jsonwebsignature2020
Package jsonwebsignature2020 implements the JsonWebSignature2020 signature suite for the Linked Data Signatures specification (https://github.com/transmute-industries/lds-jws2020).
Package jsonwebsignature2020 implements the JsonWebSignature2020 signature suite for the Linked Data Signatures specification (https://github.com/transmute-industries/lds-jws2020).

Jump to

Keyboard shortcuts

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