package
0.3.13-beta.0
Repository: https://github.com/spacemeshos/go-spacemesh.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
DefaultPostConfig defines the default configuration for Post.
No description provided by the author
DefaultPostSetupOpts defines the default options for Post setup.
No description provided by the author
No description provided by the author
NewBuilder returns an atx builder that will start a routine that will attempt to create an atx upon each new layer.
NewHandler returns a data handler for ATX.
NewHTTPPoetClient returns new instance of HTTPPoetClient connecting to the specified url.
NewHTTPPoetTestHarness returns a new instance of HTTPPoetHarness.
NewMockatxHandler creates a new mock instance.
NewMockatxProvider creates a new mock instance.
NewMockAtxReceiver creates a new mock instance.
NewMocklayerClock creates a new mock instance.
NewMocknipostBuilder creates a new mock instance.
NewMocknipostValidator creates a new mock instance.
NewMockpoetDbAPI creates a new mock instance.
NewMockPoetProvingServiceClient creates a new mock instance.
NewMockpostSetupProvider creates a new mock instance.
NewMockPostVerifier creates a new mock instance.
NewMockSmeshingProvider creates a new mock instance.
NewMocksyncer creates a new mock instance.
NewNIPostBuilder returns a NIPostBuilder.
NewOffloadingPostVerifier creates a new post proof verifier with the given number of workers.
NewPoetDb returns a new PoET handler.
NewPostSetupManager creates a new instance of PostSetupManager.
NewPostVerifier creates a new post verifier.
NewValidator returns a new NIPost validator.
No description provided by the author
SignAndFinalizeAtx signs the atx with specified signer and calculates the ID of the ATX.
WithContext modifies parent context for background job.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithPoETClientInitializer modifies initialization logic for PoET client.
WithPoetConfig sets the poet config.
WithPoetRetryInterval modifies time that builder will have to wait before retrying ATX build process if it failed due to issues with PoET server.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrATXChallengeExpired is returned when atx missed its publication window and needs to be regenerated.
No description provided by the author
No description provided by the author
No description provided by the author
ErrPoetProofNotReceived is returned when no poet proof was received.
ErrPoetServiceUnstable is returned when poet quality of service is low.
No description provided by the author
# Structs
Builder struct is the struct that orchestrates the creation of activation transactions it is responsible for initializing post, receiving poet proof and orchestrating nipst.
Config defines configuration for Builder.
No description provided by the author
Handler processes the atxs received from all nodes and their validity status.
HTTPPoetClient implements PoetProvingServiceClient interface.
HTTPPoetTestHarness utilizes a local self-contained poet server instance targeted by an HTTP client.
MockatxHandler is a mock of atxHandler interface.
MockatxHandlerMockRecorder is the mock recorder for MockatxHandler.
MockatxProvider is a mock of atxProvider interface.
MockatxProviderMockRecorder is the mock recorder for MockatxProvider.
MockAtxReceiver is a mock of AtxReceiver interface.
MockAtxReceiverMockRecorder is the mock recorder for MockAtxReceiver.
MocklayerClock is a mock of layerClock interface.
MocklayerClockMockRecorder is the mock recorder for MocklayerClock.
MocknipostBuilder is a mock of nipostBuilder interface.
MocknipostBuilderMockRecorder is the mock recorder for MocknipostBuilder.
MocknipostValidator is a mock of nipostValidator interface.
MocknipostValidatorMockRecorder is the mock recorder for MocknipostValidator.
MockpoetDbAPI is a mock of poetDbAPI interface.
MockpoetDbAPIMockRecorder is the mock recorder for MockpoetDbAPI.
MockPoetProvingServiceClient is a mock of PoetProvingServiceClient interface.
MockPoetProvingServiceClientMockRecorder is the mock recorder for MockPoetProvingServiceClient.
MockpostSetupProvider is a mock of postSetupProvider interface.
MockpostSetupProviderMockRecorder is the mock recorder for MockpostSetupProvider.
MockPostVerifier is a mock of PostVerifier interface.
MockPostVerifierMockRecorder is the mock recorder for MockPostVerifier.
MockSmeshingProvider is a mock of SmeshingProvider interface.
MockSmeshingProviderMockRecorder is the mock recorder for MockSmeshingProvider.
Mocksyncer is a mock of syncer interface.
MocksyncerMockRecorder is the mock recorder for Mocksyncer.
NIPostBuilder holds the required state and dependencies to create Non-Interactive Proofs of Space-Time (NIPost).
No description provided by the author
PoetConfig is the configuration to interact with the poet server.
PoetDb is a database for PoET proofs.
No description provided by the author
No description provided by the author
PoetSvcUnstableError means there was a problem communicating with a Poet service.
PostConfig is the configuration of the Post protocol, used for data creation, proofs generation and validation.
PostProvingOpts are the options controlling POST proving process.
PostProvingOpts are the options controlling POST proving process.
PostSetupManager implements the PostProvider interface.
PostSetupOpts are the options used to initiate a Post setup data creation session, either via the public smesher API, or on node launch (via cmd args).
PostSetupStatus represents a status snapshot of the Post setup.
Validator contains the dependencies required to validate NIPosts.
# Interfaces
No description provided by the author
PoetProvingServiceClient provides a gateway to a trust-less public proving service, which may serve many PoET proving clients, and thus enormously reduce the cost-per-proof for PoET since each additional proof adds only a small number of hash evaluations to the total cost.
No description provided by the author
SmeshingProvider defines the functionality required for the node's Smesher API.
# Type aliases
BuilderOption ...
No description provided by the author
PoETClientInitializer interfaces for creating PoetProvingServiceClient.
No description provided by the author
PostSetupProvider represent a compute provider for Post setup data creation.
No description provided by the author
No description provided by the author