@seams/wallet-server

中文文档
0.41.1发布于 2026/11/02Apache-2.0TypeScriptES Module构建来源已验证

Seams server TypeScript SDK for NEAR and EVM-family wallets

原始使用文档
文档目录3 节
  1. Google BYO authentication
  2. Supported runtime and entry points
  3. Deployment requirements

Seams Wallet Server

This package owns the reusable signer server surface: route adapters, WebAuthn verification policy, threshold signing services, signer storage adapters, and server wasm bindings.

The package version is @seams/[email protected]. Pair it with @seams/[email protected] and matching hosted assets. Use @seams/[email protected]. The wallet iframe protocol is 23.0.0.

pnpm add @seams/[email protected]

Google BYO authentication

Version 0.41.1 verifies a configured application's signed session assertion or the app's Google ID token or exchanges it for a browser-bound handoff. An environment-specific Google client configuration and an owner-approved wallet association are required. Apply the packaged signer migrations before enabling the feature. External sessions grant settings reads and remain separate from owner and signing credentials. See the Google SSO guide for configuration, backend exchange, and revocation.

Supported runtime and entry points

The packaged Wallet backend runs on Cloudflare Workers with Durable Objects, D1, role-private backup storage, and Rust/WASM protocol workers. The package does not provide a Node Gateway or an Express adapter.

Entry pointPurpose
@seams/wallet-serverShared server services, contracts, and storage adapters
@seams/wallet-server/router/cloudflareCloudflare Router adapter
@seams/wallet-server/router/rorRouter-of-Routers adapter
@seams/wallet-server/storage/tenant-routeTenant route storage
@seams/wallet-server/wasm/signerSigner WASM bindings
@seams/wallet-server/cloud-hostHosted registration and authority services
@seams/wallet-server/hosted-wallet-gatewayHosted Gateway composition
@seams/wallet-server/hosted-wallet-gateway-workerGateway Worker entry point
@seams/wallet-server/local-hosted-wallet-gateway-workerLocal Gateway Worker entry point
@seams/wallet-server/tenant-rootTenant-root lifecycle and recovery contracts
@seams/wallet-server/local-runtimePackaged local runtime configuration

The package also includes artifact-manifest.json, signer D1 migrations, local runtime scripts, and prebuilt custody Workers. Use the repository root's pnpm router for source development. Installed consumers use seams-wallet-server-local or the role and initialization commands described in the repository README.

Deployment requirements

  • Apply Gateway migration 0081_registration_directory_publications.sql before serving registration. A custom Gateway must schedule resumeRegistrationDirectoryPublicationsV1 from the cloud-host entry point.
  • Deploy Router, Deriver A, Deriver B, and Signing Worker together. Their private object-address allocation contract uses batches.
  • Renew an expired initial tenant authorization only before its creation journal starts. Retain the original authorization for an already-started ceremony.
  • Verify APAC object hosts and database primaries. The apac-se hint requests Southeast Asia placement and does not prove physical co-location.

See the server reference, hosted integration, and release notes.

Hosted product services and their operational tooling live in the private seams-monorepo repository.

Use createApplicationAuthAssertion from @seams/wallet-server/application-auth on the authenticated application backend. Configure the issuer and public key through the existing environment trust setting. The assertion binds the stable subject, environment, wallet, Seams attempt, purpose, and expiry. Fresh wallet-origin owner proof remains required for identity changes and NEAR transactions. See the application-session guide.

版本与发布记录

@seams/wallet-server 共发布 81 个版本,首次发布于 2026/09/13;过去 12 个月发布了 81 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.41.1latest2026/11/021 天前
0.41.02026/11/012 天前
0.40.02026/11/012 天前
0.39.02026/11/012 天前
0.37.02026/11/012 天前
0.36.02026/10/312 天前

关于 @seams/wallet-server 的常见问题

@seams/wallet-server 是什么?

seam服务器TypeScript SDK,用于NEAR和evm系列钱包

如何安装 @seams/wallet-server?

在项目目录运行 npm install @seams/wallet-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 seams-wallet-server-local、seams-wallet-server-d1-migrate、seams-wallet-server-local-init、seams-wallet-server-local-roles,可以用 npx seams-wallet-server-local 直接运行。

@seams/wallet-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@seams/wallet-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@seams/wallet-server 可以商用吗?

@seams/wallet-server 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@seams/wallet-server 还在维护吗?

最新版本 0.41.1 发布于 2026/11/02(1 天前);至今共发布 81 个版本,其中过去 12 个月发布了 81 个;首次发布于 2026/09/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。