Documentation
¶
Index ¶
- func Decode(replica, key io.Reader, out io.Writer) error
- func DecodeSnap(spt abi.RegisteredSealProof, commD, commK cid.Cid, key, replica io.Reader, ...) error
- type B32le
- type BytesLE
- type CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) Add(e2 *CustomDomainSepTagElement, e *CustomDomainSepTagElement) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) BigInt(b *big.Int) *big.Int
- func (c *CustomDomainSepTagElement) Cmp(x *CustomDomainSepTagElement) int
- func (c *CustomDomainSepTagElement) Inverse(e *CustomDomainSepTagElement) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) Mul(e2 *CustomDomainSepTagElement, e *CustomDomainSepTagElement) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) Set(e *CustomDomainSepTagElement) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) SetBigInt(b *big.Int) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) SetBytes(bytes []byte) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) SetOne() *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) SetString(s string) (*CustomDomainSepTagElement, error)
- func (c *CustomDomainSepTagElement) SetUint64(u uint64) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) SetZero() *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) Square(e *CustomDomainSepTagElement) *CustomDomainSepTagElement
- func (c *CustomDomainSepTagElement) Sub(e2 *CustomDomainSepTagElement, e *CustomDomainSepTagElement) *CustomDomainSepTagElement
- type Range
- type Rhos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSnap ¶
Types ¶
type CustomDomainSepTagElement ¶
CustomDomainSepTagElement 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 (*CustomDomainSepTagElement) Add ¶
func (c *CustomDomainSepTagElement) Add(e2 *CustomDomainSepTagElement, e *CustomDomainSepTagElement) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) BigInt ¶
func (c *CustomDomainSepTagElement) BigInt(b *big.Int) *big.Int
func (*CustomDomainSepTagElement) Cmp ¶
func (c *CustomDomainSepTagElement) Cmp(x *CustomDomainSepTagElement) int
func (*CustomDomainSepTagElement) Inverse ¶
func (c *CustomDomainSepTagElement) Inverse(e *CustomDomainSepTagElement) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) Mul ¶
func (c *CustomDomainSepTagElement) Mul(e2 *CustomDomainSepTagElement, e *CustomDomainSepTagElement) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) Set ¶
func (c *CustomDomainSepTagElement) Set(e *CustomDomainSepTagElement) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) SetBigInt ¶
func (c *CustomDomainSepTagElement) SetBigInt(b *big.Int) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) SetBytes ¶
func (c *CustomDomainSepTagElement) SetBytes(bytes []byte) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) SetOne ¶
func (c *CustomDomainSepTagElement) SetOne() *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) SetString ¶
func (c *CustomDomainSepTagElement) SetString(s string) (*CustomDomainSepTagElement, error)
func (*CustomDomainSepTagElement) SetUint64 ¶
func (c *CustomDomainSepTagElement) SetUint64(u uint64) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) SetZero ¶
func (c *CustomDomainSepTagElement) SetZero() *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) Square ¶
func (c *CustomDomainSepTagElement) Square(e *CustomDomainSepTagElement) *CustomDomainSepTagElement
func (*CustomDomainSepTagElement) Sub ¶
func (c *CustomDomainSepTagElement) Sub(e2 *CustomDomainSepTagElement, e *CustomDomainSepTagElement) *CustomDomainSepTagElement
type Rhos ¶
type Rhos struct {
// contains filtered or unexported fields
}
Rhos represents a collection of precomputed rho values
func NewInvRange ¶
NewInvRange generates the inverted rhos for a certain number of nodes and range
Click to show internal directories.
Click to hide internal directories.