@stellar-passkey/core API / encodeChallenge32
Function: encodeChallenge32()
encodeChallenge32(
bytes):string
Defined in: packages/core/src/webauthn/base64url.ts:110
Encode a 32-byte signature payload as a 43-character base64url string — the exact form embedded in WebAuthn clientDataJSON.challenge for a 32-byte Soroban auth-payload.
Throws if bytes.length !== 32.
Parameters
bytes
Uint8Array
Returns
string