art

package
v0.0.0-...-554b58f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RatchetTree

type RatchetTree struct {
	// contains filtered or unexported fields
}

func New

func New(g crypto.GroupOperation, frontier [][]byte, treeSize int) *RatchetTree

func (*RatchetTree) Add

func (rt *RatchetTree) Add(leaf crypto.GroupExponent) int

func (*RatchetTree) AddPath

func (rt *RatchetTree) AddPath(path [][]byte, self int, priv crypto.GroupExponent) int

func (*RatchetTree) Copy

func (rt *RatchetTree) Copy() *RatchetTree

func (*RatchetTree) DirectPath

func (rt *RatchetTree) DirectPath(idx int) [][]byte

func (*RatchetTree) Frontier

func (rt *RatchetTree) Frontier() ([][]byte, bool)

func (*RatchetTree) RootKey

func (rt *RatchetTree) RootKey() []byte

func (*RatchetTree) Size

func (rt *RatchetTree) Size() int

func (*RatchetTree) TraceTree

func (rt *RatchetTree) TraceTree(f func(level int, size int, value interface{}))

func (*RatchetTree) Update

func (rt *RatchetTree) Update(idx int, leaf crypto.GroupExponent) bool

func (*RatchetTree) UpdatePath

func (rt *RatchetTree) UpdatePath(idx int, path [][]byte, self int, priv crypto.GroupExponent) bool

Jump to

Keyboard shortcuts

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