registrant

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registrant

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

func NewRegistrant

func NewRegistrant(
	ctx context.Context,
	log *zap.Logger,
	db *queries.Queries,
	nodeRegistry registry.NodeRegistry,
	privateKeyString string,
	serverVersion *semver.Version,
) (*Registrant, error)

func (*Registrant) NodeID

func (r *Registrant) NodeID() uint32

func (*Registrant) SignStagedEnvelope

func (r *Registrant) SignStagedEnvelope(
	stagedEnv queries.StagedOriginatorEnvelope,
	baseFee currency.PicoDollar,
	congestionFee currency.PicoDollar,
) (*envelopes.OriginatorEnvelope, error)

func (*Registrant) TokenFactory

func (r *Registrant) TokenFactory() authn.TokenFactory

Jump to

Keyboard shortcuts

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