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 | Default | Description |
---|---|---|---|
[entries] | Array.<BundleEntry> | [] | Entries of single or multiple transactions with the same address |
Creates a bundle with given transaction entries.
Returns: Array.<Int8Array>
- List of transactions in the bundle
Param | Type | Description |
---|---|---|
entry | object | Entry of a single or multiple transactions with the same address. |
entry.address | Int8Array | Address. |
entry.value | Int8Array | Value to transfer in iotas. |
[entry.signatureOrMessage] | Int8Array | Signature or message fragment(s). |
[entry.timestamp] | Int8Array | Issuance timestamp (in seconds). |
[entry.tag] | Int8Array | Optional Tag, Deprecated. |
bundle | Int8Array | Bundle buffer. |
Adds given transaction entry to a bundle.
Returns: Int8Array
- Bundle copy with new entries.
Param | Type | Description |
---|---|---|
bundle | Int8Array | Bundle transaction trits |
Finalizes a bundle by calculating the bundle hash.
Returns: Int8Array
- List of transactions in the finalized bundle
Param | Type | Description |
---|---|---|
bundle | Int8Array | Bundle buffer. |
signatureOrMessage | Int8Array | Signature or message to add. |
index | number | Transaction index as entry point for signature or message fragments. |
Adds signature message fragments to transactions in a bundle starting at offset.
Returns: Int8Array
- List of transactions in the updated bundle
Param | Type | Description |
---|---|---|
bundle | Int8Array | Bundle buffer. |
offset | number | Offset from the start of the bundle buffer. |
length | number | Length of transactions in which values should be summed. |
Sums up transaction values in a bundle starting at offset.
Returns: number
- Total value of 'length' transactions in the bundle starting at offset.
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.