Function getSettlePk

Derive the public key to be used for validating the settlement transaction. This routine is similar to getSettleScalar except it only works on public data - such as the counter-parties public keys.

agora.crypto.ECC.Point getSettlePk (
  in ref const(agora.crypto.ECC.Point) origin,
  in ref const(geod24.bitblob.BitBlob!(64L)) utxo,
  in const(ulong) seq_id,
  uint num_peers
) nothrow @safe;

Parameters

NameDescription
origin the counter-party's public key.
utxo the funding transaction's UTXO.
num_peers the number of counter-parties in the channel. This number is used to be able to make multi-party channels where the number of peers is greater than two. It's used for peer nonce derivation.

Returns

the derived public key the counter-party used for signing the settle tx.