This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.kotest.core.spec.style.FunSpec | |
import io.kotest.matchers.comparables.shouldBeGreaterThanOrEqualTo | |
import io.kotest.property.Arb | |
import io.kotest.property.Shrinker | |
import io.kotest.property.arbitrary.arbitrary | |
import io.kotest.property.arbitrary.nonNegativeInt | |
import io.kotest.property.checkAll | |
data class Coordinate(val x: Int, val y: Int) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tox] | |
minversion = 3.24 | |
envlist = py{39}-{mac,wsl} | |
skipsdist = True | |
[flake8] | |
exclude = .git,.tox,dist,doc,*lib/python*,*egg,build | |
[testenv] | |
allowlist_externals = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
contract ECDSA { | |
function verify() public returns (bool) { | |
bytes32 message = ethMessageHash("TEST"); | |
bytes memory sig = hex"bceab59162da5e511fb9c37fda207d443d05e438e5c843c57b2d5628580ce9216ffa0335834d8bb63d86fb42a8dd4d18f41bc3a301546e2c47aa1041c3a1823701"; | |
address addr = 0x999471bb43b9c9789050386f90c1ad63dca89106; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.14; | |
/* | |
Example of how to verify BLS signatures and BGLS aggregate signatures in Ethereum. | |
Signatures are generated using https://github.com/Project-Arda/bgls | |
Code is based on https://github.com/jstoxrocky/zksnarks_example | |
*/ | |
contract BLSExample { |