Skip to content

Instantly share code, notes, and snippets.

@stephenmcgruer
stephenmcgruer / bbk_during_spc_authentication.js
Created November 8, 2024 16:14
Proposed shape for BBK at authentication time
const request = new PaymentRequest([{
supportedMethods: "secure-payment-confirmation",
data: {
// List of credential IDs obtained from the bank.
credentialIds,
rpId: "fancybank.com",
// The challenge is also obtained from the bank.
challenge: new Uint8Array([21,31,105 /* 29 more random bytes generated by the bank */]),