You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ADR 003: Channel ID nonce source and pre-computation undefined #66
Is it a per-client counter? Per-provider counter? Global counter?
How does a client know the nonce value when opening a channel?
If it's auto-incremented by the contract, how does the client compute the channelId before the transaction is confirmed?
Can two channels between the same client-provider pair exist simultaneously (different nonces)?
Impact:
Without this spec, off-chain voucher signing cannot reference the correct channelId, and clients cannot predict their channel ID for pre-signing workflows.
Recommendation:
Specify a contract-maintained per-pair counter:
mapping(bytes32=>uint256) public pairNonce; // keccak256(client, provider) => next nonce
The client reads pairNonce before calling openChannel, and the contract increments it atomically.
Activity
docs: fix ADR 003 payment channel gaps (#73, #72, #67, #66, #61)