vyperlang/vyper

VIP: Add support for Blake2 precompile

Open

#1,651 创建于 2019年10月24日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Python (849 fork)batch import
VIP: Approvedenhancementhelp wanted

仓库指标

Star
 (4,710 star)
PR 合并指标
 (平均合并 10天 21小时) (30 天内合并 34 个 PR)

描述

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

贡献者指南