Skip to content

@lelantos-org/sdk / services/fmd-server / CommitmentChunkEntry

Interface: CommitmentChunkEntry โ€‹

Defined in: @lelantos-org/sdk/dist/services/fmd-server/client.d.ts:72

Properties โ€‹

leafHash โ€‹

ts
leafHash: bigint;

Defined in: @lelantos-org/sdk/dist/services/fmd-server/client.d.ts:87

Poseidon(TAG_LEAF, cm, cvDep.x, cvDep.y), computed server-side.

The feed used to carry cm and the cvDep point instead, and the only thing any client did with them was hash them into this. Sending the result is one field element rather than three: it drops ~1.05M pure-JS Poseidon-4 calls over a full tree โ€” the single largest term in a cold sync โ€” and cuts this feed roughly threefold on the wire.

The client no longer derives leaves from primary data, so a wrong value here yields a wrong root. That costs a rejected transaction, not funds, and TreeStore.verifyRoot is the check that catches it.


leafIndex โ€‹

ts
leafIndex: number;

Defined in: @lelantos-org/sdk/dist/services/fmd-server/client.d.ts:73

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub