
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
@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 611 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
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.