endpoints

package
v0.0.0-...-8013fef Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGenerateProofEndpoint

func MakeGenerateProofEndpoint(prover services.Prover) endpoint.Endpoint

Types

type Endpoints

type Endpoints struct {
	GenerateProofEndpoint endpoint.Endpoint
}

func NewEndpoints

func NewEndpoints(service services.Prover) Endpoints

func (Endpoints) GenerateProof

func (ep Endpoints) GenerateProof(ctx context.Context, fullWitness witness.Witness, circuitName string) (groth16.Proof, error)

type GenerateProofRequest

type GenerateProofRequest struct {
	FullWitness witness.Witness
	CircuitName string
}

type GenerateProofResponse

type GenerateProofResponse struct {
	Proof groth16.Proof `json:"v"`
	Err   error         `json:"-"`
}

Jump to

Keyboard shortcuts

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