Skip to content

Conversation

@GalRogozinski
Copy link

No description provided.

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.

Copy link

@mtabasco mtabasco Oct 22, 2025

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
)));

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).

@mtabasco
Copy link

mtabasco commented Oct 22, 2025

To not forget: permissions to mint

uint256 chainSrc,
uint256 chainDest,
address sender,
address receiver,
Copy link
Author

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

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.

2 participants