@keyvoy/react
v0.1.0
Published
React SDK for Keyvoy — Canton Network wallet infrastructure with auth, custody, and Daml transactions
Maintainers
Readme
@keyvoy/react
React SDK for PartyLayer Enterprise — full-stack wallet infrastructure for Canton Network with authentication, MPC custody, and Daml transaction support.
Looking for the open-source wallet connector? See @partylayer/sdk
Install
npm install @keyvoy/reactQuick Start
import { PartyLayerProvider, LoginButton, WalletStatus } from '@keyvoy/react'
export default function App() {
return (
<PartyLayerProvider appId="your_app_id" network="mainnet">
<LoginButton />
<WalletStatus showPartyId />
</PartyLayerProvider>
)
}What's Included
Components
| Component | Description |
|-----------|-------------|
| PartyLayerProvider | Context wrapper — required at app root |
| LoginButton | Multi-provider login (Passkey, Email, Auth0, Telegram) |
| WalletStatus | Wallet connection state + Canton party ID |
| TransactionButton | Submit Daml transactions with confirmation UI |
| WalletSelector | Choose between embedded and external wallets |
| MfaSetupDialog | Multi-factor authentication setup flow |
| MfaChallengeDialog | MFA verification input |
Hooks
| Hook | Description |
|------|-------------|
| useAuth() | Auth state — user, login, logout, isAuthenticated |
| useWallet() | Wallet state — submitTransaction, getContracts, isReady |
| useContracts() | Query active Daml contracts |
| useTrustLevel() | Trust level management — Embedded → Custodial → Self-Custody |
| useExternalWallets() | Connect/disconnect external wallets |
| useGuest() | Guest session management |
| useMfa() | MFA setup and verification |
PartyLayer Enterprise vs Open Source
| Feature | @partylayer/sdk (OSS) | @keyvoy/react | |---------|----------------------|------------------------------| | Wallet connection | ✅ | ✅ | | CIP-0103 | ✅ | ✅ | | Authentication (Auth0, Passkey) | ❌ | ✅ | | MPC key custody | ❌ | ✅ | | Trust level migration | ❌ | ✅ | | Daml transaction submission | ❌ | ✅ | | Multi-tenant B2B | ❌ | ✅ | | Admin dashboard | ❌ | ✅ | | Webhooks | ❌ | ✅ |
Documentation
Full docs at docs.partylayer.com
License
MIT © Cayvox Labs
