bench

package module
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Copyright IBM Corp All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	// DefaultTestRoot is the default path to test data for token transfer verification
	DefaultTestRoot = "../../token/core/zkatdlog/nogh/v1/regression/testdata/zero/32-BLS12_381_BBS_GURVY"
)

Variables

View Source
var TestRoot = flag.String("testRoot", DefaultTestRoot, "path to test data for token transfer verification")

TestRoot is the path to test data for token transfer verification, overridable via the -testRoot flag. It defaults to DefaultTestRoot. Because it is registered on the global flag set, it is parsed by both `go test` (for the benchmarks) and the client's flag.Parse call.

Functions

func GenerateConfigWS added in v0.15.1

func GenerateConfigWS(testdataDir string) error

GenerateConfigWS mirrors node.GenerateConfig but uses websocket transport. (node.GenerateConfig uses default LibP2P)

func NewTokenValidationParamsSlice

func NewTokenValidationParamsSlice(TestRootPath string) ([]*transferServiceParams, error)

func SetupNodeP2P added in v0.15.1

func SetupNodeP2P(confPath string, factories ...node.NamedFactory) (*fscnode.Node, error)

SetupNodeP2P mirrors node.SetupNode and uses the default websocket transport.

Types

type TokenData

type TokenData struct {
	TokenRequestRaw []byte `json:"token_request_raw"`
	TxID            string `json:"tx_id"`
}

type TokenValidationServiceView

type TokenValidationServiceView struct {
	// contains filtered or unexported fields
}

func (*TokenValidationServiceView) Call

func (q *TokenValidationServiceView) Call(viewCtx view.Context) (any, error)

type TokenValidationServiceViewFactory

type TokenValidationServiceViewFactory struct {
	// contains filtered or unexported fields
}

TokenValidationServiceViewFactory builds verification views sharing one lazily-built validator. The zero value is ready to use; use it by pointer.

func (*TokenValidationServiceViewFactory) NewView

NewView builds a verification view. Wire proof embedded in the JSON params (remote/gRPC path)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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