createMpc2pPolicyGatedSigner
createMpc2pPolicyGatedSigner(
params):PolicyGatedSigner<"cryptographic">
Defined in: src/signer/mpc-2p.ts:182
Construct an mpc-2p (cryptographic) PolicyGatedSigner over injected agent +
transport + authenticator.
Parameters
params
Returns
PolicyGatedSigner<"cryptographic">
Example
// The agent, transport and authenticator come from the private `kawasekit-mpc-2p`// package (the WASM share, the wss/mTLS client, the HMAC key) — never bundled here.const signer = createMpc2pPolicyGatedSigner({ from: groupEoa, asset: { kind: "known", id: "jpyc-v2" }, session: { id: "sess-1", notAfter: 2_000_000_000n }, agent, transport, authenticator,});requireNonBypassable(signer); // ✓ "cryptographic" — passes the type-gateconst result = await signer.sign(intent);