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.
@iota/bundle
Advanced tools
Utilities for generating and signing bundles. A bundle in IOTA is an atomic set of transactions.
Install using npm:
npm install @iota/bundle
or using yarn:
yarn add @iota/bundle
Param | Type | Description |
---|---|---|
entries | Array.<BundleEntry> | Entries of single or multiple transactions with the same address |
Creates a bundle with given transaction entries.
Returns: Array.<Transaction>
- List of transactions in the bundle
Param | Type | Default | Description |
---|---|---|---|
transactions | Array.<Transaction> | List of transactions currently in the bundle | |
entry | object | Entry of a single or multiple transactions with the same address | |
[entry.length] | number | 1 | Entry length, which indicates how many transactions in the bundle it will occupy |
[entry.address] | Hash | Address, defaults to all-9s | |
[entry.value] | number | 0 | Value to transfer in iotas |
[entry.signatureMessageFragments] | Array.<Trytes> | List of signature message fragments, defaults to all-9s | |
[entry.timestamp] | number | Transaction timestamp, defaults to Math.floor(Date.now() / 1000) | |
[entry.tag] | string | Optional Tag, defaults to null tag (all-9s) |
Adds given transaction entry to a bundle.
Returns: Array.<Transaction>
- List of transactions in the updated bundle
Param | Type | Default | Description |
---|---|---|---|
transactions | Array.<Transaction> | List of transactions in the bundle | |
fragments | Array.<Trytes> | List of signature message fragments to add | |
[offset] | number | 0 | Optional offset to start appending signature message fragments |
Adds signature message fragments to transactions in a bundle starting at offset.
Returns: Array.<Transaction>
- List of transactions in the updated bundle
Param | Type | Description |
---|---|---|
transactions | Array.<Transaction> | List of transactions in the bundle |
Finalizes a bundle by calculating the bundle hash.
Returns: Array.<Transaction>
- List of transactions in the finalized bundle
FAQs
Utilities for generating and signing bundles
We found that @iota/bundle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.