activation

package
v1.6.6-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestPoet

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

func NewTestPoetClient

func NewTestPoetClient(expectedMembers int) *TestPoet

func (*TestPoet) Address

func (p *TestPoet) Address() string

func (*TestPoet) CertifierInfo

func (p *TestPoet) CertifierInfo(ctx context.Context) (*url.URL, []byte, error)

func (*TestPoet) Id

func (p *TestPoet) Id() []byte

func (*TestPoet) PowParams

func (p *TestPoet) PowParams(ctx context.Context) (*activation.PoetPowParams, error)

func (*TestPoet) Proof

func (p *TestPoet) Proof(ctx context.Context, roundID string) (*types.PoetProofMessage, []types.Hash32, error)

Build a proof.

Waits for the expected number of registrations to be submitted before starting to build the proof.

NOT safe to be called concurrently.

func (*TestPoet) Submit

func (p *TestPoet) Submit(
	_ context.Context,
	_ time.Time,
	_, challenge []byte,
	_ types.EdSignature,
	_ types.NodeID,
	_ activation.PoetAuth,
) (*types.PoetRound, error)

SAFE to be called concurrently.

Jump to

Keyboard shortcuts

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