# truncate

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

Defined in: [packages/synapse-core/src/piece/internal/merkle.ts:15](https://github.com/FilOzone/synapse-sdk/blob/64c5042d4a5c01045e0d46e7d07508a03dc0149a/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`