8000 GitHub - Mc01/lib-blake-2b: 📎 Solidity library implementing Blake2b hashing algorithm
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

📎 Solidity library implementing Blake2b hashing algorithm

License

Notifications You must be signed in to change notification settings

Mc01/lib-blake-2b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lib Blake2b

Installation

npm i git+https://github.com/Mc01/lib-blake-2b.git

Usage

Import and use directly in your Diamond Proxy:

// ensure input bytecode is padded by 256 bits
bytes memory inputBytes_ = abi.encodePacked(new bytes(256 - input_.length), input_);

// compute blake 2b hash out of padded input bytecode
bytes32 outputHash_ = Blake2bAB.blake2b_256(inputBytes_); 

About

📎 Solidity library implementing Blake2b hashing algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0