
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@slide-computer/signer
Advanced tools
JavaScript and TypeScript library to interact with signers on the Internet Computer
JavaScript and TypeScript library to interact with signers on the Internet Computer.
Using Signer:
npm i --save @slide-computer/signer
import { Signer } from "@slide-computer/signer";
To get started with the signer, run
// Create transport with e.g. "@slide-computer/signer-web"
const signer = new Signer({transport});
Make sure to connect before using signer if the transport requires a connection
if (transport.connection && !transport.connection.connected) {
await transport.connection.connect();
}
The signer can for example get accounts with
const accounts = await signer.accounts();
Optionally, the permission can be requested beforehand to get accounts
const permissions = await signer.requestPermissions([createAccountsPermissionScope()]);
The @slide-computer/signer-agent
package offers SignerAgent
as drop in replacement of HttpAgent
.
Besides making canister calls through signers that need to be approved by users, calls can also be made after requesting
a delegation from the signer with the delegation()
method. This delegation can then be used to create
a DelegationIdentity
which in turn can be used with the HttpAgent
.
Efforts are made to standardize the transports, for example ICRC-29 and ICRC-94. For wallets that do not implement a standardized transport method, additional polyfill packages are available.
Standardized packages | Supported signers |
---|---|
@slide-computer/signer-web | NFID, Oisy, Slide |
@slide-computer/signer-extension | PrimeVault |
Polyfill packages | Supported signers |
---|---|
@slide-computer/signer-transport-plug | Plug |
@slide-computer/signer-transport-stoic | Stoic |
@slide-computer/signer-transport-auth-client | Internet Identity |
FAQs
JavaScript and TypeScript library to interact with signers on the Internet Computer
The npm package @slide-computer/signer receives a total of 510 weekly downloads. As such, @slide-computer/signer popularity was classified as not popular.
We found that @slide-computer/signer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.