axic / blake2-solidity Goto Github PK
View Code? Open in Web Editor NEWThis is a Solidity library aiming to implement BLAKE2 (using EIP-152).
License: Apache License 2.0
This is a Solidity library aiming to implement BLAKE2 (using EIP-152).
License: Apache License 2.0
May support not fixed length
0001020304050607
0001020304050607000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
success:
✓ smoke (43ms)
✓ eip-152 test vector 5 (42ms)
failing:
1) blake2b reftest (8 bytes input)
> No events were emitted
2) blake2b reftest (25 bytes input)
> No events were emitted
3) blake2b reftest (255 bytes input)
> No events were emitted
4) equihash n=200 k=9 synthethic
> No events were emitted
1) Contract: Blake2bTest
blake2b reftest (8 bytes input):
hash mismatch
+ expected - actual
-0x416445103d1217a3b0b5f7b0efd672b55147cff27ad70c3caf8366083201f1e70e59f5163d3f5187047ab136151d747bfe37ab833bfbd8627d7a7b1b7e5da54b
+0xe998e0dc03ec30eb99bb6bfaaf6618acc620320d7220b3af2b23d112d8e9cb1262f3c0d60d183b1ee7f096d12dae42c958418600214d04f5ed6f5e718be35566
environment:
remix javascript vm and ganache-cli
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.