witness

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Witness

type Witness []fr.Element

func (*Witness) FromAssignment

func (witness *Witness) FromAssignment(assignment interface{}, leafType reflect.Type, publicOnly bool) (*schema.Schema, error)

FromAssignment extracts the witness and its schema

func (*Witness) Len

func (witness *Witness) Len() int

func (*Witness) ReadFrom

func (witness *Witness) ReadFrom(r io.Reader) (int64, error)

func (*Witness) String

func (witness *Witness) String() string

func (*Witness) ToAssignment

func (witness *Witness) ToAssignment(assignment interface{}, leafType reflect.Type, publicOnly bool)

ToAssignment sets to leaf values to witness underlying vector element values (in order) see witness.MarshalBinary protocol description

func (*Witness) Type

func (witness *Witness) Type() reflect.Type

func (*Witness) WriteTo

func (witness *Witness) WriteTo(w io.Writer) (int64, error)

WriteTo encodes witness to writer (implements io.WriterTo)

Jump to

Keyboard shortcuts

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