From 9be287ced19d7107a80dbe33963799acb52e3158 Mon Sep 17 00:00:00 2001 From: mossid Date: Mon, 12 Mar 2018 17:17:42 +0100 Subject: [PATCH] add ibc2.md --- docs/spec/ibc/ibc2.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/spec/ibc/ibc2.md diff --git a/docs/spec/ibc/ibc2.md b/docs/spec/ibc/ibc2.md new file mode 100644 index 0000000000..215600e7b1 --- /dev/null +++ b/docs/spec/ibc/ibc2.md @@ -0,0 +1,31 @@ +# IBC Spec + +## MVP2 + +`IBCUpdate` is added, making it able to prove the header. + +### IBC Module + +```golang +type IBCOutMsg struct { + IBCTransfer +} + +type IBCInMsg struct { + IBCTransfer + Proof merkle.IAVLProof + FromChainID string + FromChainHeight uint64 +} + +// update sync state of other blockchain +type IBCUpdateMsg struct { + Header tm.Header + Commit tm.Commit +} + +type IBCTransfer struct { + Destination sdk.Address + Coins sdk.Coins +} +```