Skip to main content
This page has been updated for Wallets SDK V1. If you are using the previous version, see the previous version docs or the V1 migration guide.
createServerSigner(params): ServerSigner
Defined in: packages/wallets/src/utils/server-signers/createServerSigner.ts:41 Creates a server signer by deriving a chain-specific key pair from a master secret using HKDF-SHA256. The derivation is deterministic: same inputs always produce the same signer.

Parameters

ParameterType
paramsCreateServerSignerParams

Returns

ServerSigner A server signer containing the type, derived address, and key bytes.

Example

const signer = createServerSigner({
    secret: "xmsk1_abc123...",
    chain: "base-sepolia",
    projectId: "project-id",
    environment: "staging",
});
// signer = { type: "server", address: "0x...", keyBytes: Uint8Array }