Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

New MMRLeaf Spec #665

Closed
hujw77 opened this issue Jun 11, 2021 · 2 comments · Fixed by #1067
Closed

New MMRLeaf Spec #665

hujw77 opened this issue Jun 11, 2021 · 2 comments · Fixed by #1067
Assignees

Comments

@hujw77
Copy link
Contributor

hujw77 commented Jun 11, 2021

Related to darwinia-network/darwinia-messages-sol#41

MMR Leaf Spec

struct MMRLeaf {
  bytes32 parentHash;
  bytes32 messageCommitment;
}

Inbound Message Spec

struct Message {
    address target;
    uint64 nonce;
    bytes payload;
}
event MessageDispatched(uint64 nonce, bool result);

Inbound Message Commitment Spec

keccak256(abi.encode(messages)) == commitment

Ref: https://github.com/Snowfork/snowbridge/blob/f28dc43a7267ab0e152cfd79e67244b0da0d34ed/parachain/pallets/basic-channel/src/outbound/mod.rs#L204

Outbound Message Spec

event Message(
    address source,
    uint64 nonce,
    bytes payload
);
@hackfisher
Copy link
Contributor

Related: paritytech/grandpa-bridge-gadget#221

@aurexav
Copy link
Member

aurexav commented Jan 21, 2022

@hujw77 Spec needs to be updated.

@aurexav aurexav linked a pull request Feb 8, 2022 that will close this issue
@aurexav aurexav closed this as completed Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants