The current Wallet V5 specification treats wallet_id as an opaque 32-bit value and does not describe its actual derivation scheme, while the official wrapper implements a specific format and logic in code:
https://github.com/ton-org/ton/blob/5deac43432fa5dfcd441f2f0100dc3f89f55bead/src/wallets/v5r1/WalletV5R1WalletId.ts#L11-L15
To avoid implementers reverse-engineering this file for other languages and SDKs, it would be helpful to explicitly document the wallet_id structure and derivation rules in the Wallet V5 spec so that the wrapper becomes an implementation of a written standard rather than the only source of truth.
The current Wallet V5 specification treats
wallet_idas an opaque 32-bit value and does not describe its actual derivation scheme, while the official wrapper implements a specific format and logic in code:https://github.com/ton-org/ton/blob/5deac43432fa5dfcd441f2f0100dc3f89f55bead/src/wallets/v5r1/WalletV5R1WalletId.ts#L11-L15
To avoid implementers reverse-engineering this file for other languages and SDKs, it would be helpful to explicitly document the
wallet_idstructure and derivation rules in the Wallet V5 spec so that the wrapper becomes an implementation of a written standard rather than the only source of truth.