@orangecheck/stamp-ots / submitToCalendars
Function: submitToCalendars()
function submitToCalendars(idHex: string, opts?: SubmitOptions): Promise<OtsProof>;
Defined in: submit.ts:43
Submit the envelope id (64-hex) to OTS calendars and return an OtsProof in
pending state. The caller merges this into the envelope's ots field.
Implementation note: the raw proof bytes returned by OTS calendars are not a superset of the digest alone — they encode the calendar's commitment. Because different calendars return different pending-proof bytes for the same digest, we carry the FIRST successful calendar's bytes in the envelope. Upgrade (see upgrade.ts) can fetch richer proofs from any of the submitted-to calendars later.
Parameters
| Parameter | Type |
|---|---|
idHex | string |
opts | SubmitOptions |
Returns
Promise<OtsProof>