util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyHex

func PrettyHex(v frontend.Variable) string

func Random32

func Random32() [32]byte

Random32 generates a random 32-byte array.

func RandomBigInt

func RandomBigInt(min, max *big.Int) *big.Int

RandomBigInt generates a random big integer between min and max.

func RandomBytes

func RandomBytes(n int) []byte

RandomBytes generates a random byte slice of length n.

func RandomHex

func RandomHex(n int) string

RandomHex generates a random hex string of length n.

func RandomInt

func RandomInt(min, max int) int

RandomInt generates a random integer between min and max.

func TrimHex

func TrimHex(s string) string

TrimHex trims the '0x' prefix from a hex string.

Types

This section is empty.

Directories

Path Synopsis
circomgnark package provides utilities to convert between Circom and Gnark proof formats, allowing for verification of zkSNARK proofs created with Circom and SnarkJS to be used within the Gnark framework.
circomgnark package provides utilities to convert between Circom and Gnark proof formats, allowing for verification of zkSNARK proofs created with Circom and SnarkJS to be used within the Gnark framework.

Jump to

Keyboard shortcuts

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