Function BlockHeader.sign
Create the block signature for the given keypair
agora .crypto .Schnorr .Signature sign
(
in ref const(agora .crypto .ECC .Scalar) secret_key,
in ref const(geod24 .bitblob .BitBlob!(64L)) preimage
) nothrow @safe const;
This signature will be combined with other validator's signatures
using Schnorr multisig. The signature is only returned,
the current list of signer (validators
) is not modified.
Parameters
Name | Description |
---|---|
secret_key | node's secret |
preimage | preimage at the block height for the signing validator |
Returns
A new signature derived from the provided parameters