Skip to content

1Address/ecsol

 
 

Repository files navigation

ecsol

Build Status Coverage Status

Elliptic Curve Implementation in Solidity (fork of https://github.com/jbaylina/ecsol) with implemented ecrecover trick by Vitalik Buterin (https://ethresear.ch/t/you-can-kinda-abuse-ecrecover-to-do-ecmul-in-secp256k1-today/2384).

Features

  1. Methods ecadd and ecmul without z argument
  2. Methods ecmulVerify and publicKeyVerify for super-fast (25x) verifications (31-33k gas instead of 700k-1000k gas)

Installation

  1. Install truffle globally with npm install -g truffle
  2. Install ganache-cli globally with npm install -g ganache-cli
  3. Install local packages with npm install
  4. Run ganache in separate terminal scripts/rpc.sh
  5. Run tests with npm test

On macOS you also need to install watchman: brew install watchman

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.5%
  • Shell 3.5%
  • Batchfile 3.0%