Skip to content

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.

ParameterType
nodeNode

Node