A BlockSigner signs blocks.
| 18 | |
| 19 | // A BlockSigner signs blocks. |
| 20 | type 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. |
no outgoing calls
no test coverage detected