@orangecheck/pledge-core / pledgeCanonicalInputFromEnvelope
Function: pledgeCanonicalInputFromEnvelope()
function pledgeCanonicalInputFromEnvelope(env: PledgeEnvelope): PledgeCanonicalInput;
Defined in: pledge-core/src/canonical.ts:94
Project a signed envelope back to the canonical input its id was computed over. The mapping existed in three hand-rolled copies — verifyPledge and two components in oc-pledge-web — which is one transcription error away from a verifier that disagrees with the signer about what was signed.
Parameters
| Parameter | Type |
|---|---|
env | PledgeEnvelope |