Function FlashAPI.requestUpdateSig

Requests an update signature for an established channel and a previously agreed-upon balance update's sequence ID as set through the proposePayment / proposeUpdate call.

abstract Result!(agora.script.Signature.SigPair) requestUpdateSig (
  PublicKey sender_pk,
  PublicKey recv_pk,
  geod24.bitblob.BitBlob!(64L) chan_id,
  uint seq_id
) @safe;

The node will reject this call unless it has received a settlement signature in the call to requestSettleSig().

Parameters

NameDescription
sender_pk the sender public key as managed by the counter-party. (note: will be used for signature authentication later)
recv_pk the receiving public key. If the receiving flash node does not manage this key it will return an error.
chan_id A previously seen pending channel ID provided by the funder node through the call to openChannel()
seq_id the agreed-upon balance update's sequence ID as set in the proposePayment / proposeUpdate call, for which a settlement signature was received.

Returns

the signature for the update transaction, or an error code with an optional error message.