keccak-tiny 1.2.1
Implementation of C lib keccak-tiny
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Keccak
Package implements keccak family functions
Example
import keccak;
auto data = cast(ubyte[]) "balanceOf(address)";
ubyte[256] hash1 = keccak256(data);
ubyte[256] hash2;
keccak_256(hash2.ptr, hash2.length, data.ptr, data.length);
ubyte[256] hash3;
keccakImpl!256(hash2[], source);
/// Could be also called in compile time!
static assert(keccak256(cast(ubyte[]) "hello")[0] == cast(ubyte) 28u);
References
- port of: https://github.com/IoTone/keccak-tiny
Building and Testing
dub run keccak-tiny
dub test keccak-tiny
- 1.2.1 released 2 years ago
- d-eth/keccak-tiny
- MIT
- Copyright © 2021, tynuk
- Authors:
- Dependencies:
- none
- Versions:
-
1.2.1 2022-Aug-04 1.2.0 2022-Aug-04 1.1.0 2022-Feb-09 1.0.1 2022-Feb-08 1.0.0 2022-Feb-08 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
3 downloads this month
-
284 downloads total
-
- Score:
- 0.1
- Short URL:
- keccak-tiny.dub.pm