]>
Commit | Line | Data |
---|---|---|
6c36a9fe SB |
1 | /* |
2 | Zcash uses SHA256Compress as a PRF for various components | |
3 | within the zkSNARK circuit. | |
4 | */ | |
5 | ||
6 | #ifndef _PRF_H_ | |
7 | #define _PRF_H_ | |
8 | ||
9 | #include "uint256.h" | |
10 | ||
11 | uint256 PRF_addr_a_pk(const uint256& a_sk); | |
12 | uint256 PRF_addr_sk_enc(const uint256& a_sk); | |
13 | uint256 PRF_nf(const uint256& a_sk, const uint256& rho); | |
14 | uint256 PRF_pk(const uint256& a_sk, size_t i0, const uint256& h_sig); | |
15 | uint256 PRF_rho(const uint256& phi, size_t i0, const uint256& h_sig); | |
16 | ||
17 | #endif // _PRF_H_ |