Help us shape the future of Go! Take the 2026 Go Developer Survey

phase1

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package phase1 implements functions interacting with multi-party computation Phase 1 objects produced by Gnark.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(phase1Path string) (phase1 *mpcsetup.Phase1, err error)

FromFile reads the Phase 1 object from the file specified by phase1Path.

Returns the Phase 1 object and nil on success and empty Phase 1 object and error on failure.

func FromPtau

func FromPtau(ptauFilePath string, outputPhase1FilePath string) error

FromPtau reads the Starkjs powers of tau object from the file specified by ptauFilePath, converts it to a Phase 1 object and writes the Phase 1 object to the file specified by outputPhase1FilePath.

Returns nil on success and error on failure.

func ToFile

func ToFile(phase1 *mpcsetup.Phase1, phase1Path string) error

ToFile writes the Phase 1 object to the file specified by phase1Path.

Returns nil on success and error on failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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