zkpyc-stdlib 0.1.0-dev

Standard library for the ZKPyC compiler.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from zkpyc.types import Array, field # zk_ignore
from dataclasses import dataclass #zk_ignore

# Parameters are based on: https://github.com/HarryR/ethsnarks/tree/9cdf0117c2e42c691e75b98979cb29b099eca998/src/jubjub
# Note: parameters will be updated soon to be more compatible with zCash's implementation

@dataclass
class EdwardsParams:
	EDWARDS_C: field
	EDWARDS_A: field
	EDWARDS_D: field
	INFINITY: Array[field, 2]
	G: Array[field, 2]
	H: Array[field, 2]