Documentation ¶
Index ¶
- func ElementSliceSliceToInterfaceSliceSlice(x interface{}) [][]interface{}
- func ElementSliceToInterfaceSlice(x interface{}) []interface{}
- func ElementToInterface(x *fr.Element) interface{}
- func HashFromDescription(d HashDescription) (hash.Hash, error)
- 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 HashDescription
- type ListHash
- type MessageCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementSliceSliceToInterfaceSliceSlice ¶
func ElementSliceSliceToInterfaceSliceSlice(x interface{}) [][]interface{}
func ElementSliceToInterfaceSlice ¶
func ElementSliceToInterfaceSlice(x interface{}) []interface{}
func ElementToInterface ¶
func HashFromDescription ¶
func HashFromDescription(d HashDescription) (hash.Hash, error)
func NewMessageCounter ¶
func PolynomialSliceEquals ¶
func PolynomialSliceEquals(a []polynomial.Polynomial, b []polynomial.Polynomial) error
Types ¶
type HashDescription ¶
type HashDescription map[string]interface{}
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.