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.
arweave-mnemonic-keys
Advanced tools
This library allows Arweave wallets/keys to be generated/loaded from BIP39-compliant 12 word mnemonics. This is as an alternative to the current default Arweave dapp behavior of requiring a JSON keyfile to be provided to sign transactions and interact with Arweave dapps.
See ArMob 2.0 for an example use case
This package is also served through OpenBits (http://openbits.world)
Note: It takes anywhere from 30 seconds to 2 minutes to generate an RSA key using this library cuz well...Javascript can be slow.
# npm
npm install arweave-mnemonic-keys
# openbits
openbits install arweave-mnemonic-keys
▸ generateMnemonic(): Promise‹any›
Defined in arweaveMnemonicKeys.ts:8
Generate a 12 word mnemonic for an Arweave key
Returns: Promise‹any›
▸ getKeyFromMnemonic(mnemonic
: string): Promise‹any›
Defined in arweaveMnemonicKeys.ts:30
Generates a JWK object representation of an Arweave key
example
Generate an Arweave key and get its public address
let key = getKeyFromMnemonic('jewel cave spy act loyal solid night manual joy select mystery unhappy')
arweave.wallets.jwkToAddress(key)
//returns qe741op_rt-iwBazAqJipTc15X8INlDCoPz6S40RBdg
Parameters:
Name | Type | Description |
---|---|---|
mnemonic | string | a 12 word mnemonic represented as a string |
Returns: Promise‹any›
FAQs
Utilities for generating Arweave Keys without keyfiles
We found that arweave-mnemonic-keys demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.