feat(iso-webauthn-varsig): align wire format with non-recursive spec#2
Merged
Conversation
Restructure the WebAuthn varsig wire format per Gozala's suggestion (ChainAgnostic/varsig#11) to avoid recursion: - Header: prefix version innerAlgorithm curve webauthnMarker (removed multihashCode, multihashLength, payloadEncoding from header) - Body: clientData before authData (swapped order) - Body: signatureHashAlgorithm + encodingInfo moved to body before raw signature bytes - Encoder accepts optional EncodeOptions for custom hash/encoding - Decoder returns signatureHashAlgorithm/encodingInfo instead of multihashCode/multihashLength - Added wire-format, custom options, and backwards-compat tests - Documented ABNF wire format in readme - Bumped version to 0.2.0 (breaking change) Closes #1
This was referenced Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add
iso-webauthn-varsigpackage implementing the non-recursive WebAuthn varsig wire format per Gozala's suggestion on the ChainAgnostic varsig spec.The wire format aligns with the dialog-db Go/Rust reference implementation:
prefix version innerAlgorithm curve webauthnMarkerclientDataLen clientDataJSON authDataLen authenticatorData signatureHashAlgorithm encodingInfo signatureBytesEncoder accepts optional
EncodeOptionsfor customsignatureHashAlgorithm/encodingInfo(defaults to SHA-256 / raw). Includes full test suite (node + browser) and ABNF wire format documentation in readme.Link to issue
Closes #1
Cross-references:
Type of change