Open pragyanshrestha-ibriz opened 11 months ago
The integration of wasm lightclient with relayer is a bit stuck right now due to incompatibility issue with the proto files declaration on javascore side. Once the proto files align with the cosmos official proto files we should be able to continue with the integration with relay.
we have some deviations that we discovered during integration with hopchain. One is most of the values are hashed using shaSum instead of keccak. Another one being it tries to verify hash of acknowledgement bytes rather than the value itself . Which results in double hashing of value on light client resulting proof failure. For now i have patched it by trying to verify membership by once hashing the value and once not hashing the value but its not a good solution. To rectify this we would need to apply following changes 1.Make it convention to hash values using shasum rather than keccak in javascore BTPmessage , icon light client and relayer.
After discussing this issue we have decided that the solution to resolve this properly would be to apply sha256 to acknowledgement and keccak it before generating btp message this will make our implementation closer to ibc spec. On light client side we have to make adjustments for older membership verification that provides raw acknowledgement bytes.
Cosmos SDK chains integration with Centauri