Function getSettleScalar
Create the scalar to be used for signing the settlement transaction. The key is derived from the combination of the node's own private key and the funding transaction's UTXO, as well as the sequence ID.
agora .crypto .ECC .Scalar getSettleScalar
(
in ref const(agora .crypto .ECC .Scalar) origin,
in ref const(geod24 .bitblob .BitBlob!(64L)) utxo,
in const(ulong) seq_id
) nothrow @safe;
Note that key cancellation attacks should not be feasible because we use hashing to derive the key from its origin. - todo: verify this assumption
Parameters
Name | Description |
---|---|
origin | the node's own private key. |
utxo | the funding transaction's UTXO. |
Returns
the private key to use for signing the update transaction.