zkinputs

package
v0.0.0-...-2d117f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProof

func GenerateProof(input ZKInput, circomArtifactsPath string) (
	proofA [2]*big.Int,
	proofB [2][2]*big.Int,
	proofC [2]*big.Int,
	err error,
)

Types

type ZKInput

type ZKInput struct {
	Sender           common.Address     `json:"senderInput"`
	Root             *merkletree.Hash   `json:"stateRoot"`
	N                int                `json:"n"`
	Fn               int                `json:"Fn"`
	SiblingsFn       []*merkletree.Hash `json:"siblingsFn"`
	OldKeyFn         *merkletree.Hash   `json:"oldKeyFn"`
	OldValueFn       *merkletree.Hash   `json:"oldValueFn"`
	IsOld0Fn         bool               `json:"isOld0Fn"`
	FnMinOne         int                `json:"FnMinOne"`
	SiblingsFnMinOne []*merkletree.Hash `json:"siblingsFnMinOne"`
	FnMinTwo         int                `json:"FnMinTwo"`
	SiblingsFnMinTwo []*merkletree.Hash `json:"siblingsFnMinTwo"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL