Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@arcblock/forge-wallet
Advanced tools
Utility function to create and use an forge compatible crypto wallet
Utility function to create and use a forge compatible wallet, the wallet is also DID compatible.
yarn add @arcblock/forge-wallet
# OR
npm i @arcblock/forge-wallet -S
const assert = require('assert');
const { fromSecretKey, WalletType, fromJSON } = require('@arcblock/forge-wallet');
const { types } = require('@arcblock/mcrypto');
const sk =
'0xD67C071B6F51D2B61180B9B1AA9BE0DD0704619F0E30453AB4A592B036EDE644E4852B7091317E3622068E62A5127D1FB0D4AE2FC50213295E10652D2F0ABFC7';
const appId = 'zNKtCNqYWLYWYW3gWRA1vnRykfCBZYHZvzKr';
const sig =
'0x08a102851c38c072e42756c1cc70938b5499c8e9358dfe5f383823f56cdb282ffda60fcd581a02c6c673069e5afc0bf09abbe3639b61b84d64fd58ef9f083003';
const type = WalletType({
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});
const wallet = fromSecretKey(sk, type);
const message = 'data to sign';
const signature = wallet.sign(message);
assert.equal(signature, sig, 'signature should match');
assert.ok(wallet.verify(message, signature), 'signature should be verified');
const wallet2 = fromJSON(wallet.toJSON());
// Do something with wallet 2
For full documentation, checkout README.md.
0.40.9 (November 08, 2019)
FAQs
Utility function to create and use an forge compatible crypto wallet
The npm package @arcblock/forge-wallet receives a total of 56 weekly downloads. As such, @arcblock/forge-wallet popularity was classified as not popular.
We found that @arcblock/forge-wallet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.