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 ¶
ComputeS256 returns the PKCE code challenge for a verifier (RFC 7636 4.2).
func DPoPProof ¶
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 ¶
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.