Skip to content

fix: solana caip350 binary representation is the full 32 bytes - #195

Open
recxodus wants to merge 1 commit into
ChainAgnostic:mainfrom
recxodus:fix/solana-caip350-binary-representation
Open

fix: solana caip350 binary representation is the full 32 bytes#195
recxodus wants to merge 1 commit into
ChainAgnostic:mainfrom
recxodus:fix/solana-caip350-binary-representation

Conversation

@recxodus

@recxodus recxodus commented Aug 5, 2026

Copy link
Copy Markdown

Closes #173@bumblefudge was right, decoding the truncated string gives you 23 bytes, not 32.

The binary representation section told you to truncate the base58btc text to 32 characters and then decode:

5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp              -> 23 bytes  e15de390a1bfea...
5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d  -> 32 bytes  45296998a6f8e2...

Everything else in the profile already says 32 bytes: the text representation is the full 44-character blockhash, Text -> binary conversion is a plain base58btc decode with no truncation, and the worked example shows the full hash. Footnote 1 warns against exactly this. Only that one sentence disagreed, so it's now stated the other way round — truncation belongs to the CAIP-2 text form only.

Also defines the missing [CAIP-350] link reference in solana/caip350.md and eip155/caip350.md; both cite it in the note under Text representation but neither declares it, so it renders as literal brackets on the site. bip122 and starknet already have it.

Decoding the truncated 32-character CAIP-2 chain reference yields 23
bytes, contradicting the text representation, the text -> binary
conversion, and the worked example. Also define the missing CAIP-350
link reference in the solana and eip155 profiles.

Closes ChainAgnostic#173
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.

Possible typo in solana/caip350 profile?

1 participant