
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@turnkey/indexed-db-stamper
Advanced tools
The @turnkey/indexed-db-stamper
package enables secure request stamping using an unextractable P-256 keypair stored in the browser’s IndexedDB. It serves the same purpose as @turnkey/api-key-stamper
, allowing you to sign and approve requests to Turnkey’s API, but without exposing the private key. This is ideal for long-lived browser sessions in progressive web apps (PWAs), wallet extensions, or any context where the key must remain secure and persistent across reloads.
The IndexedDbStamper generates the private key using SubtleCrypto and stores it in a non-exportable format, ensuring that it cannot be extracted or exfiltrated by application code. The keypair is stored in IndexedDB so that it can be reused in subsequent sessions.
Usage:
The IndexedDbStamper
class implements the TStamper
interface used by the TurnkeyClient
in the @turnkey/http
module. It encapsulates the logic necessary to sign activity requests and generates the appropriate HTTP headers for authentication.
import { IndexedDbStamper } from "@turnkey/indexed-db-stamper";
// Initialize the stamper and generate or load the keypair
const stamper = new IndexedDbStamper();
await stamper.init();
// Once initialized, the stamper is ready to be passed into the TurnkeyClient.
const httpClient = new TurnkeyClient(
{ baseUrl: "https://api.turnkey.com" },
stamper,
);
FAQs
IndexedDB-based stamper for @turnkey/http
The npm package @turnkey/indexed-db-stamper receives a total of 10,001 weekly downloads. As such, @turnkey/indexed-db-stamper popularity was classified as popular.
We found that @turnkey/indexed-db-stamper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.