-
Couldn't load subscription status.
- Fork 0
Universal-Bridge #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| However, every message in a cross-chain exchange mapping to a single atomic operation must carry the same SessionID. | ||
|
|
||
| The first 16 bytes serve as version. Currently the only canonical version is 0. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great decision. Do you think it makes sense to include here the mechanism for implementing it? like:
sessionId = uint256(keccak256(abi.encode(
VERSION << 240, // 16-bit version prefix
sender,
nonce,
blockNumber,
salt
)));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take into account UI side (SDK).
|
To not forget: permissions to mint |
universal_bridge.md
Outdated
| uint256 chainSrc, | ||
| uint256 chainDest, | ||
| address sender, | ||
| address receiver, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this, and use msg.sender
No description provided.