Permissions (Session Keys)Signers
For the complete documentation index, see llms.txt. This page is also available as markdown.

ECDSA Signer

Archived version

You are viewing @zerodev/sdk v5.3.x documentation. View the latest documentation.

The ECDSA signer signs with a single ECDSA key, specifically with the secp256k1 curve, which is the same algorithm that EOAs use.

API

import { toECDSASigner } from "@zerodev/permissions/signers"

// Use any Viem account
const signer = privateKeyToAccount(generatePrivateKey())

const ecdsaSigner = toECDSASigner({
  signer,
})

const validator = toPermissionValidator(publicClient, {
  entryPoint,
  kernelVersion,
  signer: ecdsaSigner,
  policies: [
    // ...
  ],
})

On this page