examples

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

package examples contains examples of circuits and proof verifications that run on the AVM.

Run the examples with `go run main.go` in the package subdirectories. A local network with default configuration is expected to be running. You can use algokit to start one with `algokit localnet start`

Directories

Path Synopsis
basic
logicsigVerifier
This example defines a basic circuit that given public variables 'a' and 'b', verifies that the Prover knows a secret 'c' that satisfies the Pythagorean equation: a*a + b*b == c*c
This example defines a basic circuit that given public variables 'a' and 'b', verifies that the Prover knows a secret 'c' that satisfies the Pythagorean equation: a*a + b*b == c*c
smartContractVerifier
This example defines a basic circuit that given public variables 'a' and 'b', verifies that the Prover knows a secret 'c' that satisfies the Pythagorean equation: a*a + b*b == c*c
This example defines a basic circuit that given public variables 'a' and 'b', verifies that the Prover knows a secret 'c' that satisfies the Pythagorean equation: a*a + b*b == c*c
merkle
logicsigVerifier
This example defines a circuit that given a public root for a Merkle tree lets the Prover prove the presence in the tree of an element, wihtout revealing it.
This example defines a circuit that given a public root for a Merkle tree lets the Prover prove the presence in the tree of an element, wihtout revealing it.
smartContractVerifier
This example defines a circuit that given a public root for a Merkle tree lets the Prover prove the presence in the tree of an element, wihtout revealing it.
This example defines a circuit that given a public root for a Merkle tree lets the Prover prove the presence in the tree of an element, wihtout revealing it.

Jump to

Keyboard shortcuts

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