MCPcopy Create free account
hub / github.com/Effect-TS/effect / bytes

Function bytes

packages/effect/test/utils/crypto.ts:10–10  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

8export const encode = (text: string): Uint8Array => new TextEncoder().encode(text)
9
10export const bytes = (hex: string): Uint8Array => Result.getOrThrow(Hex.decode(hex))
11
12// Copies bytes into the middle of a larger buffer, so implementations must
13// respect the view's offset and length.

Callers 9

KeyFormat.test.tsFile · 0.90
Signature.test.tsFile · 0.90
Cipher.test.tsFile · 0.90
Kdf.test.tsFile · 0.90
Mac.test.tsFile · 0.90
KeyWrap.test.tsFile · 0.90
importKwFunction · 0.90
Aead.test.tsFile · 0.90

Calls 1

decodeMethod · 0.45

Tested by 1

importKwFunction · 0.72