Serializes one or more Proof objects to an array of individual JSON strings, one per proof. BigInt amount fields are emitted as plain JSON numbers without precision loss.
amount
// NutZap proof tags const proofTags = serializeProofs(proofs).map((s) => ['proof', s]); // localStorage localStorage.setItem('proofs', JSON.stringify(serializeProofs(proofs))); Copy
// NutZap proof tags const proofTags = serializeProofs(proofs).map((s) => ['proof', s]); // localStorage localStorage.setItem('proofs', JSON.stringify(serializeProofs(proofs)));
Serializes one or more Proof objects to an array of individual JSON strings, one per proof. BigInt
amountfields are emitted as plain JSON numbers without precision loss.