DOCS / OVERVIEW
Build with programmable keys.
Choose who controls a key, give it a purpose, approve one exact request, and receive a native signature from two independent signers.
New to PairKey? Follow the lifecycle below, then choose Account, Program, Passkey or OIDC/OAuth. Each source uses the same key and signing interface; transaction support depends on the destination.
Install the released browser SDK with npm install @pairkey/sdk. See destination signature use cases for transactions on Solana, EVM, NEAR and Sui, EIP-712 typed data on EVM (source preview), and application message signatures on Bitcoin and Zcash.
Explore the tutorials for program-controlled keys, Hyperliquid, Aave lending, Zcash escrow and BTCFi. Each guide identifies the signing features available today and the adapters still required.
The complete model
- Choose a sourceA wallet, Solana program, passkey or OIDC/OAuth identity controls the namespace.
- Name the purposeA namespace such as
org/acme/treasurycreates a stable authority and policy boundary. - Derive a keyThe namespace, destination chain and numeric path select a stable public key. No complete private key is assembled.
- Approve exactly one requestThe source authenticates the destination, path, payload commitment, request ID, expiry and current policy revision.
- Threshold signBoth signers independently verify the request and policy, then produce one chain-native signature.
- Send or recoverYour application broadcasts through its destination RPC. A saved job ID retrieves the original attempt after interruption.
Choose who controls the key
| Source | Stable identity | Exact-request proof | Best fit |
|---|---|---|---|
| Account | Solana wallet public key | Wallet message signature | Crypto-native applications |
| Program | Program and controller PDA | Read-only program evaluation or on-chain commit | Treasuries, bots, protocols and application custody |
| Passkey | Credential key, RP ID and origin | WebAuthn assertion binding a fresh ephemeral key | Consumer applications |
| OIDC/OAuth | Issuer, audience and subject | ID token binding a fresh ephemeral key | Social and enterprise login |
Every source must approve every request even when no optional policy has been saved. Passkey and OIDC/OAuth ephemeral keys authorize one request; they do not hold assets and do not change the stable destination address.
Give each key a purpose
Use a namespace for a business or security boundary and a numeric path for subaccounts governed together:
namespace: org/acme/treasury/solana
path [0]: operating account
path [1]: reserve account
The stable key is selected by the source identity, PairKey deployment, namespace, destination and path. Policy edits do not rotate it. Changing the source, namespace, destination or path selects another key. See Keys & namespaces.
One SDK after connection
import * as web3 from '@solana/web3.js';
import {PairKeyClient} from '@pairkey/sdk';
const pairkey = new PairKeyClient({web3, storage: localStorage});
await pairkey.connect({source, namespace, ...authentication});
const key = await pairkey.key({chain, path});
const signed = await pairkey.signMessage({chain, path, message});
const assembled = await pairkey.signTransaction({chain, path, transaction});
const sent = await pairkey.signAndSend({chain, path, transaction, ...rpc});
const recovered = await pairkey.recover(jobId);
signTransaction returns signed destination bytes without broadcasting. signAndSend uses the connection, RPC URL or broadcast callback provided by your application. PairKey's signing service does not choose or operate the destination RPC.
Authentication and policy are separate
Exact-request authentication proves who approved the operation. Optional standard rules restrict destination, path, payload size or availability. A program can additionally enforce application logic such as membership, recipient, amount, proposal state or a consumable budget. Setting or editing policy is an administrative transaction; it is not repeated before every signature.
Current development availability
| Destination | Application messages | Transactions |
|---|---|---|
| Solana | Ed25519 | Legacy and v0 |
| EVM | EIP-191 | Restricted EIP-155 legacy native transfers on Base Sepolia |
| NEAR | Ed25519 | Canonical Borsh transactions; key must already be installed |
| Sui | Ed25519 | BCS TransactionData |
| Bitcoin | PairKey-tagged BIP-340 | Restricted testnet Taproot PSBT source preview; not yet live |
| Zcash | RedPallas | Restricted testnet Ironwood PCZT library alpha; not yet hosted; no recovery guarantee |
SDK 0.2.1 includes client support for EVM EIP-712 typed data, selectable chain IDs, and restricted Bitcoin Taproot PSBT signing. The public service does not yet advertise those capabilities. See Signing schemes for what each message method signs and Supported chains for operation availability.
Hosted passkey and Google sign-in flows remain development previews. Review Security & status before using valuable funds.