ComposableFi / ibc-go

Interblockchain communication protocol (IBC) implementation in Golang.
https://ibcprotocol.org/
MIT License
8 stars 3 forks source link

Investigate lib/trie from gossamer #6

Open seunlanlege opened 2 years ago

seunlanlege commented 2 years ago

Get this test working

https://github.com/ComposableFi/ibc-go/blob/6d62edaa1a3cb0768c430dab81bb195e0b0c72db/modules/light-clients/11-beefy/types/mmr_test.go#L16-L47

qdm12 commented 2 years ago

FYI you should subscribe to https://github.com/ChainSafe/gossamer/issues/2418 to know when this is done.

There are also many PRs mentioning this issue, it's still a work in progress, and not as trivial as it might seem. I have been working most of my time on this since May, and it's almost ready.

Note for proof verification, you will have to pass in a state version parameter (0 or 1). If that can help, in Gossamer for proof verification, the runtime injects this state version to the host function (the Go proof verification). For some other calls such as ones interacting with the state trie, this is found from querying the runtime Core_version/WASM custom section.