vyperlang/vyper

VIP: Add support for Blake2 precompile

オープン

#1,651 opened on 2019/10/24

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)Python (849 件のフォーク)batch import
VIP: Approvedenhancementhelp wanted

Repository metrics

Stars
 (4,710 個のスター)
PR merge metrics
 (平均マージ 10d 21h) (30d で 34 merged PRs)

説明

Simple Summary

Add support for blake2 cryptographic hash function

Motivation

Blake2 is a newer but popular hash function that is being used in a variety of circumstances including ZKP due to it's efficiency under pairing operations. Support in Vyper would make it easier to develop applications that use it.

Specification

Support for Blake2 is being added in the upcoming Istanbul hardfork. The specification is in EIP-152, and a reference implementation in a client is here: https://github.com/ethereum/py-evm/blob/master/eth/precompiles/blake2.py

Function signature:

blake2b_f() -> bytes32[2]

Backwards Compatibility

No backwards incompatibilities

Dependencies

No dependencies

Copyright

Copyright and related rights waived via CC0

コントリビューターガイド