# zStringToCid

> `const` **zStringToCid**: `ZodCodec`\<`ZodCustom`\<`string`, `string`\>, `ZodCustom`\<[`PieceCID`](/reference/filoz/synapse-core/piece/classes/piececid/), [`PieceCID`](/reference/filoz/synapse-core/piece/classes/piececid/)\>\>

Defined in: [packages/synapse-core/src/utils/schemas.ts:39](https://github.com/FilOzone/synapse-sdk/blob/278badff6cfc813e6315d00c56f4a5f23c80f883/packages/synapse-core/src/utils/schemas.ts#L39)