This is a Solidity library aiming to implement BLAKE2 (using EIP-152).
  • Solidity 61.9%
  • JavaScript 38.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
roman-strilets 2de2619779 fixed warning
2021-05-21 22:22:26 +03:00
contracts fixed warning 2021-05-21 22:22:26 +03:00
migrations Truffle skeleton 2019-08-26 12:39:32 +01:00
test outlen 32 and refactoring 2021-05-21 22:09:51 +03:00
.env.example npm project initialized, dotenv added, config refactoring 2021-05-21 20:13:37 +03:00
.gitattributes Add .gitattributes with Solidity 2020-06-07 19:09:17 +01:00
.gitignore fixed warning 2021-05-21 22:22:26 +03:00
.gitmodules Run blake2b reference test vectors 2019-08-26 17:21:09 +01:00
geth-genesis.json npm project initialized, dotenv added, config refactoring 2021-05-21 20:13:37 +03:00
LICENSE Genesis 2019-08-20 11:50:35 +02:00
package-lock.json added truffle to package 2021-05-21 20:17:13 +03:00
package.json added truffle to package 2021-05-21 20:17:13 +03:00
README.md outlen 32 and refactoring 2021-05-21 22:09:51 +03:00
truffle-config.js outlen 32 and refactoring 2021-05-21 22:09:51 +03:00

blake2-solidity

This is a Solidity library aiming to implement BLAKE2.

Currently it tries to only support BLAKE2B using the EIP-152 precompile.

Usage

It requires a recent go-ethereum develop version, since it uses the precompile.

Use the geth-genesis.json, run a local node and use truffle test.

  1. Download and build go-ethereum commit cc9eb91d30a5d4806154b832b9665aecc617b6d8
  2. To prepare, run geth --datadir ./dataDir init ./geth-genesis.json
  3. To start the node geth --port 4321 --networkid 1234 --datadir=./dataDir --rpc --rpcport 8543 --rpcaddr 127.0.0.1 --rpcapi "eth,net,web3,personal,miner" --gasprice 0 --etherbase 0x627306090abab3a6e1400e9345bc60c78a8bef57 --mine --minerthreads=1
  4. Install prerequisite to truffle: npm install --save truffle-hdwallet-provider
  5. And finally run truffle test to see tests succeed (or fail)

References

Maintainer(s)

License

Apache-2.0