MCPcopy
hub / github.com/chain/Core / BlockSigner

Interface BlockSigner

core/generator/generator.go:20–25  ·  view source on GitHub ↗

A BlockSigner signs blocks.

Source from the content-addressed store, hash-verified

18
19// A BlockSigner signs blocks.
20type BlockSigner interface {
21 // SignBlock returns an ed25519 signature over the block's sighash.
22 // See also the Chain Protocol spec for the complete required behavior
23 // of a block signer.
24 SignBlock(ctx context.Context, marshalledBlock []byte) (signature []byte, err error)
25}
26
27// Generator collects pending transactions and produces new blocks on
28// an interval.

Callers 1

getSigFunction · 0.65

Implementers 3

BlockSignercore/blocksigner/blocksigner.go
testSignercore/generator/generator_test.go
remoteSignercmd/cored/main.go

Calls

no outgoing calls

Tested by

no test coverage detected