truncate
truncate(
node):Node
Defined in: packages/synapse-core/src/piece/internal/merkle.ts:15
Truncate a 32-byte node by zeroing the top two bits of the last byte. Mutates the input in place; returns it for chaining.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
node | Node |
Returns
Section titled “Returns”Node