# truncate

> **truncate**(`node`): `Node`

Defined in: [packages/synapse-core/src/piece/internal/merkle.ts:15](https://github.com/FilOzone/synapse-sdk/blob/ea2a88fe8ec7ca9b723171e8959c45ac98b52ac1/packages/synapse-core/src/piece/internal/merkle.ts#L15)

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

| Parameter | Type |
| ------ | ------ |
| `node` | `Node` |

## Returns

`Node`