Documentation
¶
Index ¶
- type RatchetTree
- func (rt *RatchetTree) Add(leaf crypto.GroupExponent) int
- func (rt *RatchetTree) AddPath(path [][]byte, self int, priv crypto.GroupExponent) int
- func (rt *RatchetTree) Copy() *RatchetTree
- func (rt *RatchetTree) DirectPath(idx int) [][]byte
- func (rt *RatchetTree) Frontier() ([][]byte, bool)
- func (rt *RatchetTree) RootKey() []byte
- func (rt *RatchetTree) Size() int
- func (rt *RatchetTree) TraceTree(f func(level int, size int, value interface{}))
- func (rt *RatchetTree) Update(idx int, leaf crypto.GroupExponent) bool
- func (rt *RatchetTree) UpdatePath(idx int, path [][]byte, self int, priv crypto.GroupExponent) bool
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
Click to show internal directories.
Click to hide internal directories.