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

  1. Choose a sourceA wallet, Solana program, passkey or OIDC/OAuth identity controls the namespace.
  2. Name the purposeA namespace such as org/acme/treasury creates a stable authority and policy boundary.
  3. Derive a keyThe namespace, destination chain and numeric path select a stable public key. No complete private key is assembled.
  4. Approve exactly one requestThe source authenticates the destination, path, payload commitment, request ID, expiry and current policy revision.
  5. Threshold signBoth signers independently verify the request and policy, then produce one chain-native signature.
  6. Send or recoverYour application broadcasts through its destination RPC. A saved job ID retrieves the original attempt after interruption.

Choose who controls the key

SourceStable identityExact-request proofBest fit
AccountSolana wallet public keyWallet message signatureCrypto-native applications
ProgramProgram and controller PDARead-only program evaluation or on-chain commitTreasuries, bots, protocols and application custody
PasskeyCredential key, RP ID and originWebAuthn assertion binding a fresh ephemeral keyConsumer applications
OIDC/OAuthIssuer, audience and subjectID token binding a fresh ephemeral keySocial 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

DestinationApplication messagesTransactions
SolanaEd25519Legacy and v0
EVMEIP-191Restricted EIP-155 legacy native transfers on Base Sepolia
NEAREd25519Canonical Borsh transactions; key must already be installed
SuiEd25519BCS TransactionData
BitcoinPairKey-tagged BIP-340Restricted testnet Taproot PSBT source preview; not yet live
ZcashRedPallasRestricted 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.