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 signle or multiple transactions with the same address |
Creates a bunlde 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 single or multiple transactions with the same address | |
[entry.length] | number | 1 | Entry length, which indicates how many transactions in the bundle will occupy |
[entry.address] | string | Address, defaults to all-9s | |
[entry.value] | number | 0 | Value to transfer in IOTAs |
[entry.signatureMessageFragments] | Array.<string> | Array of signature message fragments trytes, 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) |
Creates a bunlde with given transaction entries
Returns: Array.<Transaction>
- Bundle
Param | Type | Default | Description |
---|---|---|---|
transactions | Array.<Transaction> | Transactions in the bundle | |
fragments | Array.<Trytes> | Message signature fragments to add | |
[offset] | number | 0 | Optional offset to start appending signature message fragments |
Adds a list of trytes in the bundle starting at offset
Returns: Array.<Transaction>
- Transactions of finalized bundle
Param | Type | Description |
---|---|---|
transactions | Array.<Transaction> | Transactions in the bundle |
Finalizes the bundle by calculating the bundle hash
Returns: Array.<Transaction>
- Transactions of finalized bundle
FAQs
Utilities for generating and signing bundles
The npm package @iota/bundle receives a total of 1,235 weekly downloads. As such, @iota/bundle popularity was classified as popular.
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.