Skip to content

Instantly share code, notes, and snippets.

BjornvdLaan / ECDSA.sol
Created Aug 12, 2018
Verification of externally created ECDSA signatures in Solidity
View ECDSA.sol
pragma solidity ^0.4.24;
contract ECDSA {
function verify() public returns (bool) {
bytes32 message = ethMessageHash("TEST");
bytes memory sig = hex"bceab59162da5e511fb9c37fda207d443d05e438e5c843c57b2d5628580ce9216ffa0335834d8bb63d86fb42a8dd4d18f41bc3a301546e2c47aa1041c3a1823701";
address addr = 0x999471bb43b9c9789050386f90c1ad63dca89106;
BjornvdLaan / tox.ini
Created Oct 15, 2021
Starter template for tox when using docker-compose to set up dependent systems
View tox.ini
minversion = 3.24
envlist = py{39}-{mac,wsl}
skipsdist = True
exclude = .git,.tox,dist,doc,*lib/python*,*egg,build
allowlist_externals =
BjornvdLaan / BLSExample.sol
Last active Oct 10, 2021
Verification of BLS signatures and BGLS aggregate signatures in Ethereum
View BLSExample.sol
pragma solidity ^0.4.14;
Example of how to verify BLS signatures and BGLS aggregate signatures in Ethereum.
Signatures are generated using
Code is based on
contract BLSExample {