MCPcopy
hub / github.com/simstudioai/sim / uuidToBytes

Function uuidToBytes

apps/sim/lib/workspaces/fork/remap/block-identity.ts:11–13  ·  view source on GitHub ↗
(uuid: string)

Source from the content-addressed store, hash-verified

9const FORK_BLOCK_NAMESPACE = '6f1c0e2a-9b3d-5e47-8a1c-2d4f6b8e0c13'
10
11function uuidToBytes(uuid: string): Buffer {
12 return Buffer.from(uuid.replace(/-/g, ''), 'hex')
13}
14
15/**
16 * Deterministic UUIDv5 (SHA-1) of `name` within `namespace`. The same inputs

Callers 1

uuidV5Function · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected