Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@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
The npm package @iota/bundle receives a total of 53 weekly downloads. As such, @iota/bundle popularity was classified as not 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.