Function getUpdateScalar

Create the scalar to be used for signing the update transaction. The key is derived from the combination of the node's own private key and the funding transaction's UTXO.

agora.crypto.ECC.Scalar getUpdateScalar (
  in ref const(agora.crypto.ECC.Scalar) origin,
  in ref const(geod24.bitblob.BitBlob!(64L)) utxo
) nothrow @safe;

Note that key cancellation attacks are not possible (e.g. using fake UTXO), this function is only used with update transaction and not the trigger transaction. It will not be called until the funding transaction's UTXO was externalized, which by definition cannot be manipulated to cause key cancellation attacks.

Parameters

NameDescription
origin the node's own private key.
utxo the funding transaction's UTXO.

Returns

the private key to use for signing the update transaction.