Mina中的VRF
Posted mutourend
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mina中的VRF相关的知识,希望对你有一定的参考价值。
1. 引言
相关代码见:
- https://github.com/zkvalidator/mina-vrf-rs(Rust)
- https://github.com/MinaProtocol/mina/blob/develop/src/lib/vrf_evaluator/vrf_evaluator.ml(OCaml)
$ dune exe src/app/cli/src/mina.exe -- advanced vrf
Commands for vrf evaluations
mina.exe advanced vrf SUBCOMMAND
=== subcommands ===
batch-check-witness Check a batch of vrf evaluation witnesses read on
stdin. Outputs the verified vrf evaluations (or no vrf
output if the witness is invalid), and whether the vrf
output satisfies the threshold values if given. The
threshold should be included in the JSON for each vrf
as the 'vrfThreshold' field, of format
delegatedStake: 1000, totalStake: 1000000000. The
threshold is not checked against a ledger; this should
be done manually to confirm whether threshold_met in
the output corresponds to an actual won block.
batch-generate-witness Generate a batch of vrf evaluation witnesses from
"globalSlot": _, "epochSeed": _, "delegatorIndex": _
JSON message objects read on stdin
generate-witness Generate a vrf evaluation witness. This may be used to
calculate whether a given private key will win a given
slot (by checking threshold_met = true in the JSON
output), or to generate a witness that a 3rd party can
use to verify a vrf evaluation.
help explain a given subcommand (perhaps recursively)
missing subcommand for command mina.exe advanced vrf
参考资料
[1] 2021年7月博客 Evaluating a Mina staking pool’s performance
[2] ZKValidator – Block Producer Analysis
附录
Mina系列博客有:
- Mina概览
- Mina的支付流程
- Mina的zkApp
- Mina中的Pasta(Pallas和Vesta)曲线
- Mina中的Schnorr signature
- Mina中的Pickles SNARK
- Mina中的Kimchi SNARK
- Mina Kimchi SNARK 代码解析
- Mina Berkeley QANet测试网zkApp初体验
- Mina中的Poseidon hash
- Mina中的多项式承诺方案
- Recursive SNARKs总览
- Mina技术白皮书
- Mina代码解析
- Mina中的Snark Worker
- Mina中的Scan State
以上是关于Mina中的VRF的主要内容,如果未能解决你的问题,请参考以下文章