Type Alias submit_offline_payment
submit_offline_payment: TxDescriptor<
{
amount: bigint;
cid: { digest: FixedSizeBinary<4>; geohash: FixedSizeBinary<5> };
nullifier: FixedSizeBinary<32>;
proof: Binary;
recipient: SS58String;
sender: SS58String;
},
>
Submit an offline payment ZK proof for settlement.
Anyone can submit a proof - the submitter doesn't need to be the sender. This allows either party (buyer or seller) to settle when they come online.
The proof verifies:
Arguments
proof- The Groth16 proof bytessender- The account sending funds (must have registered commitment)recipient- The account receiving fundsamount- The amount to transfercid- The community identifiernullifier- The unique nullifier for this payment