Protocol Extension: Anonymous Credentials#253
Draft
a1denvalu3 wants to merge 34 commits intocashubtc:mainfrom
Draft
Protocol Extension: Anonymous Credentials#253a1denvalu3 wants to merge 34 commits intocashubtc:mainfrom
a1denvalu3 wants to merge 34 commits intocashubtc:mainfrom
Conversation
- Add Status/Scope/Dependencies headings - Normalize numbered sections: Endpoint, Request, Verification, Response, Errors, Security - Enforce normative constraints (units, active keysets, tag/hex formats) - Clarify transcript ordering and fee delta in AC-03 - Align AC-01/02 keyset semantics and error codes - Improve interop notes and references
- Add Status/Scope/Dependencies and numbered sections - Normalize endpoints, request/response, constraints, verification, errors - Define mint/melt balance delta, unit and keyset constraints - Add fee return handling and ordering of tweaks vs signature issuance (AC-05) - Clarify security/policy notes and references
- Add normative constraints: inputs.len()==2, outputs.len()==2, mac_proofs.len()==2 - Document decoy shaping via AC-06 zero-amount notes and zero-amount outputs (with RangeProof) - Keep unit/keyset/transcript constraints consistent across specs
…actors (NUT-13 style)
- Define BIP32 path: m/129372'/1'/{keyset_id_int}'/{counter}'/{c} with c∈{0:tag,1:amount_bf,2:script_bf}
- Specify keyset-scoped counters, integer keyset id mapping, and interop rules
- Add AC-00 note referencing AC-07 for deterministic wallets
- v1: legacy BIP32 path (extended to 3 components)
- v2: HMAC-SHA512 KDF keyed by BIP39 seed; no BIP32 usage
- Component byte c∈{0,1,2} distinguishes tag, amount_bf, script_bf
- Clarify counters, keyset_id mapping, security, and interop
- Replace HMAC-SHA512 with HMAC-SHA256 for keyset v2 - Use label Cashu_KDF_HMAC_SHA256 and keep entire digest, reduce mod n - Maintain BIP32 only for v1 legacy
- keyset_id_bytes = raw keyset id (v1: 8 bytes, v2: 33 bytes) - counter_bytes = 8-byte big-endian unsigned - Keep HMAC-SHA256 label and full digest mod n
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.
No description provided.