universal-signer

Guide for using @universal-signer/core to unified signing across AWS KMS, GCP KMS, Ledger, Trezor, Turnkey, and Local accounts with Viem v2. Use when implementing secure signing logic that needs to support hardware or cloud KMS providers.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "universal-signer" with this command: npx skills add melonask/universal-signer-skills/melonask-universal-signer-skills-universal-signer

Universal Signer

Overview

@universal-signer/core provides a unified, type-safe interface for various signing providers, all compatible with Viem v2. It allows you to write blockchain logic once and switch between AWS KMS, Google Cloud KMS, Ledger, Trezor, Turnkey, and local keys through configuration.

Installation

npm install @universal-signer/core viem

Then install only the provider(s) you need:

ProviderDependencies
AWS KMSnpm install @aws-sdk/client-kms
GCP KMSnpm install @google-cloud/kms
Ledgernpm install @ledgerhq/hw-app-eth @ledgerhq/hw-transport-node-hid
Trezornpm install @trezor/connect
Turnkeynpm install @turnkey/viem @turnkey/http @turnkey/api-key-stamper
LocalNo additional dependencies

Quick Start

import { createUniversalClient, createAwsAccount } from "@universal-signer/core";
import { mainnet } from "viem/chains";
import { http } from "viem";

// 1. Create an account
const account = await createAwsAccount({
  keyId: "alias/my-key",
  region: "us-east-1"
});

// 2. Create a Viem-compatible client
const client = createUniversalClient(account, mainnet, http());

// 3. Sign transactions or messages normally
const hash = await client.sendTransaction({
  to: "0x...",
  value: 1000000000000000n
});

Features & Configuration

For detailed setup and configuration for specific providers, see the following:

Key Capabilities

  • Unified API: All providers return a standard Viem LocalAccount.
  • Full Support: signTransaction, signMessage, and signTypedData (EIP-712).
  • KMS Normalization: Automatic EIP-2 signature normalization and v recovery.
  • Hardware Ready: Built-in HID management for Ledger and Trezor.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

viem-sweep

No summary provided by upstream source.

Repository SourceNeeds Review
General

evm-address

No summary provided by upstream source.

Repository SourceNeeds Review
General

eip-7702

No summary provided by upstream source.

Repository SourceNeeds Review
General

viem-siwe

No summary provided by upstream source.

Repository SourceNeeds Review