witness

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 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 added in v0.6.1

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

FromAssignment extracts the witness and its schema

func (*Witness) Len added in v0.6.1

func (witness *Witness) Len() int

func (*Witness) ReadFrom added in v0.6.1

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

func (*Witness) String added in v0.6.1

func (witness *Witness) String() string

func (*Witness) ToAssignment added in v0.6.1

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 added in v0.6.1

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