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

Function KeyAgreementPublicKey

packages/effect/src/Schema.ts:15026–15033  ·  view source on GitHub ↗
(algorithm: A)

Source from the content-addressed store, hash-verified

15024 * @since 4.0.0
15025 */
15026export const KeyAgreementPublicKey = <A extends KeyAgreement_.Algorithm>(algorithm: A): KeyAgreementPublicKey<A> =>
15027 declareCryptoKey<KeyAgreement_.PublicKey<A>>(
15028 "KeyAgreementPublicKey",
15029 "KeyAgreement",
15030 "PublicKey",
15031 KeyAgreement_.isPublicKey,
15032 algorithm
15033 )
15034
15035/**
15036 * Schema that decodes a raw public key into a `KeyAgreement.PublicKey`: 32

Callers 2

Calls 1

declareCryptoKeyFunction · 0.85

Tested by

no test coverage detected