hash

package
v0.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher [][]byte

func (*Hasher) AddBigInt

func (h *Hasher) AddBigInt(v *big.Int)

func (*Hasher) AddBool

func (h *Hasher) AddBool(v bool)

func (*Hasher) AddBytes

func (h *Hasher) AddBytes(v []byte)

func (*Hasher) AddDuration

func (h *Hasher) AddDuration(v time.Duration)

func (*Hasher) AddEnum

func (h *Hasher) AddEnum(v interface{ ID() uint64 })

func (*Hasher) AddHash

func (h *Hasher) AddHash(v *[32]byte)

func (*Hasher) AddInt

func (h *Hasher) AddInt(v int64)

func (*Hasher) AddString

func (h *Hasher) AddString(v string)

func (*Hasher) AddTime

func (h *Hasher) AddTime(v time.Time)

func (*Hasher) AddUint

func (h *Hasher) AddUint(v uint64)

func (*Hasher) AddUrl

func (h *Hasher) AddUrl(v *url.URL)

func (*Hasher) AddValue

func (h *Hasher) AddValue(v interface{ MerkleHash() []byte })

func (Hasher) MerkleHash

func (h Hasher) MerkleHash() []byte

func (Hasher) Receipt

func (h Hasher) Receipt(element, anchor int) *managed.Receipt

Receipt returns a receipt for the numbered element. Receipt returns nil if either index is out of bounds.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL