
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@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 13,883 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.