cryptosat / randomness

Docs and example codes for Crypto1 randomness on Velas blockchain
0 stars 0 forks source link

Switch to Keccak256 in our implementation to match Solidity #3

Open yanofearth opened 2 years ago

yanofearth commented 2 years ago

https://github.com/cryptosat/randomness/blob/32673d5e6dc4fa407f36d0c92def5481aa0f3d9d/contracts/SignatureVerifier.sol#L11

cryptotk commented 2 years ago

This requires Crypto1 using Keccak256 instead of SHA256. As far as I know MbedTLS doesn't support that: related issue here https://github.com/Mbed-TLS/mbedtls/issues/3079

So that means introducing another library to Crypto1.