walletflow

package
v0.7.23 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package walletflow builds the tokens an OpenID4VCI/OpenID4VP client sends, for tests that drive a real wallet flow.

These lived in duplicate in internal/verifier/integration and internal/wallet/integration, byte-for-byte apart from blank lines. Two copies of a signing helper is two places for a signing bug to hide, and the EC coordinate padding fix had to be made in both.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeS256

func ComputeS256(verifier string) string

ComputeS256 returns the PKCE code challenge for a verifier (RFC 7636 4.2).

func DPoPProof

func DPoPProof(t testing.TB, method, uri, accessToken string, key *ecdsa.PrivateKey) string

DPoPProof returns a signed DPoP proof for one request (RFC 9449), carrying the public half in the jwk header. accessToken may be empty; when it is not, its S256 hash is bound in as ath.

func ProofJWT

func ProofJWT(t testing.TB, audience, cNonce, clientID string, key *ecdsa.PrivateKey) string

ProofJWT returns an OpenID4VCI proof of possession for the credential endpoint. cNonce may be empty when the issuer has not issued one.

func SyntheticSDJWT

func SyntheticSDJWT(t testing.TB, key *ecdsa.PrivateKey) string

SyntheticSDJWT returns an SD-JWT with no disclosures, bound to the key, for tests that need a well-formed credential rather than a real one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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