Skip to content

feat(DetailedAccount): addhexstring to token-id definition#49

Open
irfan798 wants to merge 2 commits into
mainfrom
feature/detailed-account-hexstring
Open

feat(DetailedAccount): addhexstring to token-id definition#49
irfan798 wants to merge 2 commits into
mainfrom
feature/detailed-account-hexstring

Conversation

@irfan798
Copy link
Copy Markdown
Collaborator

@irfan798 irfan798 commented Mar 9, 2026

No description provided.

irfan798 added 2 commits March 9, 2026 13:44
- Rename CDDL rule hexstring → hex-string, bytes → bstr across
  DetailedAccount, HexString, and CoinIdentity (RFC 8610 convention,
  one name for one concept)
- Switch ERC1155/ERC721 example to UAI "contract.tokenId" dot form
  per NBCR-2024-001, drop the "must be decimal" claim (EIP-1155
  token ids are uint256 — rendering is an implementation choice)
- Drop ERC20-only framing on HexString promotion (any canonically-
  hex id is promoted, regardless of chain)
- Replace "Shall we really add 0x?" query-comment with a one-line
  JSDoc explaining the round-trip-parity rule
- Collapse HexString's hexadecimal-tag + hex-bytes into a single
  hex-string = #6.263(bstr) rule
- Align CoinIdentity's hex_string → hex-string in CDDL block
  and JSDoc

No wire-format change — tag 263 bytes are byte-for-byte identical,
all existing tests pass.

Refs LIQ-842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant