Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@appliedblockchain/mantle
Advanced tools
Mantle is a blockchain SDK targeting Ethereum and Hyperledger Fabric
Mantle SDK repository
const mantle = new Mantle()
The mantle instance exposes methods to facilitate, amongst other things, mnemonic and HD public/private key generation, IPFS API access etc.
Mnemonic, HD private/public keys and private/public keys are generated via loadMnemonic
. Supply a mnemonic associated with an existing account in order to retrieve key information, or supply no argument in order to generate a new set of keys.
Facilitated via the encryptSymmetric
and decryptSymmetric
static methods. Shared secrets can be generated via createSymmetricKey
.
Install IPFS: https://ipfs.io/docs/install/
Ensure that you have initialized IPFS and have an IPFS daemon instance running before attempting to interact with the API:
ipfs init
ipfs daemon
Please see tests in test/mantle.spec.js
for further examples.
mantle.mnemonic // undefined
mantle.loadMnemonic() // No argument supplied - used for new accounts
mantle.mnemonic // 'knife zone arch average surround tape napkin elephant share fuel jeans false'
mantle.removeKeys()
mantle.mnemonic // null
mantle.loadMnemonic('tragic panic toast hazard royal marine visual laptop salmon guard finger upper') // Mnemonc supplied - should be used to load existing keys
const data = 'foo'
const encrypted = Mantle.encrypt(data, mantle.publicKey) // Returns a buffer
const decrypted = Mantle.decrypt(encrypted, mantle.privateKey) // 'foo'
const data = 'foo'
const secret = Mantle.createSymmetricKey()
const encrypted = Mantle.encryptSymmetric(data, secret) // Returns a Buffer
const decrypted = Mantle.decryptSymmetric(encrypted, secret) // 'foo'
npm install
ipfs daemon
npm test
Please check the documentation created in this repo: https://github.com/appliedblockchain/mantle-intro-doc
FAQs
Mantle is a blockchain SDK targeting Ethereum and Hyperledger Fabric
The npm package @appliedblockchain/mantle receives a total of 0 weekly downloads. As such, @appliedblockchain/mantle popularity was classified as not popular.
We found that @appliedblockchain/mantle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.