Documentation ¶
Index ¶
- Variables
- func ElementSliceSliceToInterfaceSliceSlice(x interface{}) [][]interface{}
- func ElementSliceToInterfaceSlice(x interface{}) []interface{}
- func ElementToInterface(x *fr.Element) interface{}
- func NewMessageCounter(startState, step int) hash.Hash
- func NewMessageCounterGenerator(startState, step int) func() hash.Hash
- func PolynomialSliceEquals(a []polynomial.Polynomial, b []polynomial.Polynomial) error
- func SetElement(z *fr.Element, value interface{}) (*fr.Element, error)
- func SliceEquals(a []fr.Element, b []fr.Element) error
- func SliceSliceEquals(a [][]fr.Element, b [][]fr.Element) error
- func SliceToElementSlice[T any](slice []T) ([]fr.Element, error)
- func ToElement(i int64) *fr.Element
- type ElementMap
- type ElementTriplet
- type ListHash
- type MapHash
- type MessageCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var MapCache = make(map[string]*ElementMap)
Functions ¶
func ElementSliceSliceToInterfaceSliceSlice ¶
func ElementSliceSliceToInterfaceSliceSlice(x interface{}) [][]interface{}
func ElementSliceToInterfaceSlice ¶
func ElementSliceToInterfaceSlice(x interface{}) []interface{}
func ElementToInterface ¶
func NewMessageCounter ¶
func PolynomialSliceEquals ¶
func PolynomialSliceEquals(a []polynomial.Polynomial, b []polynomial.Polynomial) error
Types ¶
type ElementMap ¶
type ElementMap []*ElementTriplet
func CreateElementMap ¶
func CreateElementMap(rawMap map[string]interface{}) (ElementMap, error)
func ElementMapFromFile ¶
func ElementMapFromFile(path string) (*ElementMap, error)
func (*ElementMap) UnusedEntries ¶
func (m *ElementMap) UnusedEntries() []interface{}
type ElementTriplet ¶
type ElementTriplet struct {
// contains filtered or unexported fields
}
func (*ElementTriplet) CmpKey ¶
func (t *ElementTriplet) CmpKey(o *ElementTriplet) int
type MapHash ¶
type MapHash struct { Map *ElementMap // contains filtered or unexported fields }
type MessageCounter ¶
type MessageCounter struct {
// contains filtered or unexported fields
}
func (*MessageCounter) BlockSize ¶
func (m *MessageCounter) BlockSize() int
func (*MessageCounter) Reset ¶
func (m *MessageCounter) Reset()
func (*MessageCounter) Size ¶
func (m *MessageCounter) Size() int
func (*MessageCounter) Sum ¶
func (m *MessageCounter) Sum(b []byte) []byte
Click to show internal directories.
Click to hide internal directories.