Documentation ¶
Index ¶
- func Libp2pKeyFromInsecurePassphrase(prefix, insecurePassphrase string) (libp2pcrypto.PrivKey, error)
- func SignerFromInsecurePassphrase(prefix, insecurePassphrase string) (gcrypto.Ed25519Signer, error)
- type EchoApp
- type EchoConsensusStrategy
- func (s *EchoConsensusStrategy) ChooseProposedBlock(ctx context.Context, phs []tmconsensus.ProposedHeader) (string, error)
- func (s *EchoConsensusStrategy) ConsiderProposedBlocks(ctx context.Context, phs []tmconsensus.ProposedHeader, ...) (string, error)
- func (s *EchoConsensusStrategy) DecidePrecommit(ctx context.Context, vs tmconsensus.VoteSummary) (string, error)
- func (s *EchoConsensusStrategy) EnterRound(ctx context.Context, rv tmconsensus.RoundView, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Libp2pKeyFromInsecurePassphrase ¶
func Libp2pKeyFromInsecurePassphrase(prefix, insecurePassphrase string) (libp2pcrypto.PrivKey, error)
func SignerFromInsecurePassphrase ¶
func SignerFromInsecurePassphrase(prefix, insecurePassphrase string) (gcrypto.Ed25519Signer, error)
Types ¶
type EchoApp ¶
type EchoApp struct {
// contains filtered or unexported fields
}
func NewEchoApp ¶
func NewEchoApp( ctx context.Context, log *slog.Logger, initChainRequests <-chan tmdriver.InitChainRequest, finBlockRequests <-chan tmdriver.FinalizeBlockRequest, ) *EchoApp
type EchoConsensusStrategy ¶
type EchoConsensusStrategy struct {
// contains filtered or unexported fields
}
func NewEchoConsensusStrategy ¶
func NewEchoConsensusStrategy(log *slog.Logger, pubKey gcrypto.PubKey) *EchoConsensusStrategy
func (*EchoConsensusStrategy) ChooseProposedBlock ¶
func (s *EchoConsensusStrategy) ChooseProposedBlock(ctx context.Context, phs []tmconsensus.ProposedHeader) (string, error)
func (*EchoConsensusStrategy) ConsiderProposedBlocks ¶
func (s *EchoConsensusStrategy) ConsiderProposedBlocks( ctx context.Context, phs []tmconsensus.ProposedHeader, _ tmconsensus.ConsiderProposedBlocksReason, ) (string, error)
func (*EchoConsensusStrategy) DecidePrecommit ¶
func (s *EchoConsensusStrategy) DecidePrecommit(ctx context.Context, vs tmconsensus.VoteSummary) (string, error)
func (*EchoConsensusStrategy) EnterRound ¶
func (s *EchoConsensusStrategy) EnterRound(ctx context.Context, rv tmconsensus.RoundView, proposalOut chan<- tmconsensus.Proposal) error
Click to show internal directories.
Click to hide internal directories.