generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Bases []ristretto.Point
	// contains filtered or unexported fields
}

Generator holds the information to generate a set of points based on an initial byte slice; data

func New

func New(data []byte) *Generator

New will generate a generator which will use data to generate `n` points

func (*Generator) Clear

func (g *Generator) Clear()

Clear will clear all of the Bases but leave the counter as is

func (*Generator) Compute

func (g *Generator) Compute(num uint32)

Compute will generate num amount of points, which will act as point generators using the initial data.

func (*Generator) Iterate

func (g *Generator) Iterate() ristretto.Point

Iterate will generate a new point using the previous point's bytes as a seed or the original nonce data, if no previous point is available

Jump to

Keyboard shortcuts

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