-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
144 additions
and
52 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
pragma solidity 0.8.20; | ||
|
||
import {Blake2s} from "./Blake2s.sol"; | ||
import "hardhat/console.sol"; | ||
|
||
contract TestContract { | ||
function hash(bytes memory input) public pure returns (bytes32) { | ||
Blake2s.BLAKE2s_ctx memory ctx; | ||
ctx.c = 23989; | ||
|
||
|
||
|
||
|
||
|
||
|
||
// return Blake2s.toBytes32(input); | ||
contract TestContract { | ||
function hash(bytes memory input) external pure returns (bytes32) { | ||
return Blake2s.toBytes32(input); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "blake2s-solidity", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Blake2s hash function for Solidity", | ||
"author": "Alex Plutta - [email protected]", | ||
"license": "MIT", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ | |
"@chainsafe/persistent-merkle-tree" "^0.4.2" | ||
case "^1.6.3" | ||
|
||
"@cspotcode/source-map-support@^0.8.0": | ||
"@cspotcode/source-map-support@^0.8.20": | ||
version "0.8.1" | ||
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" | ||
integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== | ||
|
@@ -226,7 +226,7 @@ | |
integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== | ||
dependencies: | ||
"@ethersproject/bytes" "^5.7.0" | ||
js-sha3 "0.8.0" | ||
js-sha3 "0.8.20" | ||
|
||
"@ethersproject/[email protected]", "@ethersproject/logger@^5.7.0": | ||
version "5.7.0" | ||
|
@@ -1861,7 +1861,7 @@ ethereum-bloom-filters@^1.0.6: | |
resolved "https://registry.yarnpkg.com/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz#3ca07f4aed698e75bd134584850260246a5fed8a" | ||
integrity sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA== | ||
dependencies: | ||
js-sha3 "^0.8.0" | ||
js-sha3 "^0.8.20" | ||
|
||
[email protected], ethereum-cryptography@^0.1.3: | ||
version "0.1.3" | ||
|
@@ -2616,9 +2616,9 @@ js-sdsl@^4.1.4: | |
resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.4.2.tgz#2e3c031b1f47d3aca8b775532e3ebb0818e7f847" | ||
integrity sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w== | ||
|
||
[email protected].0, js-sha3@^0.8.0: | ||
version "0.8.0" | ||
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" | ||
[email protected].20, js-sha3@^0.8.20: | ||
version "0.8.20" | ||
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.20.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" | ||
integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== | ||
|
||
[email protected]: | ||
|
@@ -3504,7 +3504,7 @@ [email protected]: | |
commander "3.0.2" | ||
follow-redirects "^1.12.1" | ||
fs-extra "^0.30.0" | ||
js-sha3 "0.8.0" | ||
js-sha3 "0.8.20" | ||
memorystream "^0.3.1" | ||
require-from-string "^2.0.0" | ||
semver "^5.5.0" | ||
|
@@ -3761,7 +3761,7 @@ ts-node@^10.9.1: | |
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" | ||
integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== | ||
dependencies: | ||
"@cspotcode/source-map-support" "^0.8.0" | ||
"@cspotcode/source-map-support" "^0.8.20" | ||
"@tsconfig/node10" "^1.0.7" | ||
"@tsconfig/node12" "^1.0.7" | ||
"@tsconfig/node14" "^1.0.0" | ||
|
@@ -3831,7 +3831,7 @@ typechain@^8.3.0: | |
debug "^4.3.1" | ||
fs-extra "^7.0.0" | ||
glob "7.1.7" | ||
js-sha3 "^0.8.0" | ||
js-sha3 "^0.8.20" | ||
lodash "^4.17.15" | ||
mkdirp "^1.0.4" | ||
prettier "^2.3.1" | ||
|