activation

package
v1.7.0-alpha.1-nomain Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 13 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, poetCfg activation.PoetConfig) *TestPoet

func (*TestPoet) Address

func (p *TestPoet) Address() string

func (*TestPoet) CertifierInfo

func (p *TestPoet) CertifierInfo(ctx context.Context) (*types.CertifierInfo, error)

func (*TestPoet) Id

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

func (*TestPoet) Info added in v1.7.0

func (p *TestPoet) Info(ctx context.Context) (*types.PoetInfo, error)

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