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

Function cryptoFormatData

packages/effect/src/Schema.ts:14514–14515  ·  view source on GitHub ↗
(format: KeyFormat_.Format<R, "decode", Data>)

Source from the content-addressed store, hash-verified

14512}) as unknown as Codec<KeyFormat_.JsonWebKey>
14513
14514const cryptoFormatData = <R extends KeyFormat_.Role, Data>(format: KeyFormat_.Format<R, "decode", Data>): Codec<Data> =>
14515 (format._tag === "jwk" ? CryptoJsonWebKey : format.pem ? String : Uint8Array) as Codec<any>
14516
14517const cryptoKeyFromFormat = <To extends Codec<any>, R extends KeyFormat_.Role, Data>(
14518 name: string,

Callers 1

cryptoKeyFromFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected