Documentation ¶
Index ¶
- Variables
- func AddUint64(a, b uint64) (uint64, error)
- func StandardCircuit(privateParams, publicParams interface{}) bool
- func ValidateInclusionProof(outputCommitment []byte, commitmentIndex uint64, hashes [][]byte, flags uint64, ...) bool
- func ValidateUnlockingScript(scriptCommitment []byte, scriptParams *UnlockingScriptInputs, ...) (bool, error)
- type InclusionProof
- type PrivateInput
- type PrivateOutput
- type PrivateParams
- type PublicOutput
- type PublicParams
- type UnlockingScriptInputs
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIntegerOverflow = errors.New("integer overflow")
Functions ¶
func StandardCircuit ¶
func StandardCircuit(privateParams, publicParams interface{}) bool
This whole function is a placeholder for the actual zk-snark circuit. We enumerate it here to give an approximate idea of what the circuit will do.
func ValidateInclusionProof ¶
func ValidateUnlockingScript ¶
func ValidateUnlockingScript(scriptCommitment []byte, scriptParams *UnlockingScriptInputs, unlockingParams [][]byte) (bool, error)
ValidateUnlockingScript is a placeholder. Normally this would be part of the overall circuit to validate the functional commitment.
Types ¶
type InclusionProof ¶
type PrivateInput ¶
type PrivateOutput ¶
type PrivateParams ¶
type PrivateParams struct { Inputs []PrivateInput Outputs []PrivateOutput }
type PublicOutput ¶
type PublicParams ¶
type UnlockingScriptInputs ¶
type UnlockingScriptInputs struct { InputIndex int PrivateParams PrivateParams PublicParams PublicParams ScriptParams [][]byte }
Click to show internal directories.
Click to hide internal directories.