Documentation
¶
Index ¶
- type Arity
- type Arity11
- type Arity16
- type Arity2
- type Arity24
- type Arity3
- type Arity32
- type Arity36
- type Arity4
- type Arity8
- type DST
- type DSTElement
- func (c *DSTElement[D]) Add(e2 *DSTElement[D], e *DSTElement[D]) *DSTElement[D]
- func (c *DSTElement[D]) BigInt(b *big.Int) *big.Int
- func (c *DSTElement[D]) Cmp(x *DSTElement[D]) int
- func (c *DSTElement[D]) Inverse(e *DSTElement[D]) *DSTElement[D]
- func (c *DSTElement[D]) Mul(e2 *DSTElement[D], e *DSTElement[D]) *DSTElement[D]
- func (c *DSTElement[D]) New() *DSTElement[D]
- func (c *DSTElement[D]) Set(e *DSTElement[D]) *DSTElement[D]
- func (c *DSTElement[D]) SetBigInt(b *big.Int) *DSTElement[D]
- func (c *DSTElement[D]) SetBytes(bytes []byte) *DSTElement[D]
- func (c *DSTElement[D]) SetOne() *DSTElement[D]
- func (c *DSTElement[D]) SetString(s string) (*DSTElement[D], error)
- func (c *DSTElement[D]) SetUint64(u uint64) *DSTElement[D]
- func (c *DSTElement[D]) SetZero() *DSTElement[D]
- func (c *DSTElement[D]) Square(e *DSTElement[D]) *DSTElement[D]
- func (c *DSTElement[D]) Sub(e2 *DSTElement[D], e *DSTElement[D]) *DSTElement[D]
- type MerkleTree2
- type MerkleTree8
- type MerkleTreeDST
- type SnapDST
- type SnapElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSTElement ¶
DSTElement is a custom element which overrides SetString used by the poseidon hash function to set the default hardcoded DST. We hijack the SetString function to set the DST to the hardcoded value needed for Snap.
func (*DSTElement[D]) Add ¶
func (c *DSTElement[D]) Add(e2 *DSTElement[D], e *DSTElement[D]) *DSTElement[D]
func (*DSTElement[D]) Cmp ¶
func (c *DSTElement[D]) Cmp(x *DSTElement[D]) int
func (*DSTElement[D]) Inverse ¶
func (c *DSTElement[D]) Inverse(e *DSTElement[D]) *DSTElement[D]
func (*DSTElement[D]) Mul ¶
func (c *DSTElement[D]) Mul(e2 *DSTElement[D], e *DSTElement[D]) *DSTElement[D]
func (*DSTElement[D]) New ¶
func (c *DSTElement[D]) New() *DSTElement[D]
func (*DSTElement[D]) Set ¶
func (c *DSTElement[D]) Set(e *DSTElement[D]) *DSTElement[D]
func (*DSTElement[D]) SetBigInt ¶
func (c *DSTElement[D]) SetBigInt(b *big.Int) *DSTElement[D]
func (*DSTElement[D]) SetBytes ¶
func (c *DSTElement[D]) SetBytes(bytes []byte) *DSTElement[D]
func (*DSTElement[D]) SetOne ¶
func (c *DSTElement[D]) SetOne() *DSTElement[D]
func (*DSTElement[D]) SetString ¶
func (c *DSTElement[D]) SetString(s string) (*DSTElement[D], error)
func (*DSTElement[D]) SetUint64 ¶
func (c *DSTElement[D]) SetUint64(u uint64) *DSTElement[D]
func (*DSTElement[D]) SetZero ¶
func (c *DSTElement[D]) SetZero() *DSTElement[D]
func (*DSTElement[D]) Square ¶
func (c *DSTElement[D]) Square(e *DSTElement[D]) *DSTElement[D]
func (*DSTElement[D]) Sub ¶
func (c *DSTElement[D]) Sub(e2 *DSTElement[D], e *DSTElement[D]) *DSTElement[D]
type MerkleTree2 ¶
type MerkleTree2 = DSTElement[MerkleTreeDST[Arity2]]
type MerkleTree8 ¶
type MerkleTree8 = DSTElement[MerkleTreeDST[Arity8]]
type MerkleTreeDST ¶
type MerkleTreeDST[A Arity] struct{}
func (MerkleTreeDST[A]) DST ¶
func (m MerkleTreeDST[A]) DST() *fr.Element
type SnapElement ¶
type SnapElement = DSTElement[SnapDST]
Click to show internal directories.
Click to hide internal directories.