-
Notifications
You must be signed in to change notification settings - Fork 391
Description
We're working on expanding Certus One Wormhole bridge architecture (currently supporting token transfer between Solana and Ethereum) to support other blockchains (you can find original repository here: https://github.com/certusone/wormhole)
One of the key parts of this architecture are VAAs (verifiable action approvals) which are sent by guardians who confirm cross-chain actions. And these VAAs contain signatures (in secp256k1 format) from guardians approving the action. These signatures have to be verified in the smart contract and this cannot be achieved with CosmWasm now. So what we ask is to add such signature verification (and sha-3 hashing) to be available from the smart contract environment.
Regarding interface it would be ideal if it is compatible with Ethereum ecrecover function, which accepts 32-byte message, v, r, s signature field and returns recovered address as first 20 bytes of sha3-hashed pubkey.
Overall we believe that such functionality in CosmWasm will be useful for many future projects on Cosmos. With high Ethereum fees many DeFi services will look for compatible blockchains they can integrate with their existing smart contracts and support for the same cryptography features in CosmWasm will be very important.