channelOpenProofMessage function
The exact text the paying wallet signs.
Implementation
String channelOpenProofMessage({
required String chain,
required String txHash,
required String payer,
required num amountUsd,
}) {
return [
'$payerProofDomain/v$payerProofVersion',
'purpose:$payerProofChannelOpen',
'chain:${canonicalProofChain(chain)}',
'tx:${canonicalProofTxHash(txHash)}',
'payer:${canonicalProofPayer(payer)}',
'amount_cents:${canonicalProofAmountCents(amountUsd)}',
].join('\n');
}