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