dusk-network / piecrust

General purpose virtual machine for running WASM smart contracts
Mozilla Public License 2.0
23 stars 15 forks source link

Keccak256 and secp256k1 signature verification #360

Open HDauven opened 6 months ago

HDauven commented 6 months ago

Summary

To allow for compatibility with Ethereum signatures for certain use cases, we should introduce host functions for the Keccak256 hashing algorithm and the secpk256k1 signature curve used in Ethereum's ECDSA implementation.

Possible solution design or implementation

introduce two new host functions for Keccack256 and secp256k1 signature verification.