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

Function SignaturePrivateKey

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

Source from the content-addressed store, hash-verified

14926 * @since 4.0.0
14927 */
14928export const SignaturePrivateKey = <A extends Signature_.Algorithm>(algorithm: A): SignaturePrivateKey<A> =>
14929 declareCryptoKey<Signature_.PrivateKey<A>>(
14930 "SignaturePrivateKey",
14931 "Signature",
14932 "PrivateKey",
14933 Signature_.isPrivateKey,
14934 algorithm
14935 )
14936
14937/**
14938 * Schema that decodes an Ed25519 or ML-DSA seed into a `Signature.PrivateKey`.

Callers 2

Calls 1

declareCryptoKeyFunction · 0.85

Tested by

no test coverage detected