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

Function KeyAgreementPrivateKey

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

Source from the content-addressed store, hash-verified

15118 * @since 4.0.0
15119 */
15120export const KeyAgreementPrivateKey = <A extends KeyAgreement_.Algorithm>(
15121 algorithm: A
15122): KeyAgreementPrivateKey<A> =>
15123 declareCryptoKey<KeyAgreement_.PrivateKey<A>>(
15124 "KeyAgreementPrivateKey",
15125 "KeyAgreement",
15126 "PrivateKey",
15127 KeyAgreement_.isPrivateKey,
15128 algorithm
15129 )
15130
15131/**
15132 * Schema that decodes an X25519 private key into a

Calls 1

declareCryptoKeyFunction · 0.85

Tested by

no test coverage detected