
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This is a npm module to create, read and update blockchains for browser/chromium environment.
This module is a work in progress and to be used only for beta testing until an official production realease is announced.
Feel free to drop in your suggestions to fsdevkris@gmail.com
npm install chainmaker
Class to Create, Read and Update BlockChains.
Method to create a new Blockchain. Parameters:
| Name | Type | Description |
|---|---|---|
| name | String | Name of the Blockchain. |
Returns: this Reference to self to enable method chaining Type: Object
Method to create a Transaction on the Blockchain. Parameters:
| Name | Type | Description |
|---|---|---|
| toAddress | String | Wallet address of the Recipient. |
| data | Object | data to be transferred. |
Returns: this Reference to self to enable method chaining Type: Object
Method to create a crypto wallet containing crypto keys and wallet address.
Returns: this Reference to self to enable method chaining Type: Object
Method to obtain wallet address.
Returns: wallet address. Type: String
Method to load locally saved Blockchain. Parameters:
| Name | Type | Description |
|---|---|---|
| name | String | Name of the Blockchain. |
Method to load locally saved Wallet Private Key. Parameters:
| Name | Type | Description |
|---|---|---|
| walletAddress | String | Wallet address. |
Method to mine a block with given difficulty Parameters:
| Name | Type | Description |
|---|---|---|
| difficulty | Number | level of mining set by n/w. |
Returns: Valid Block of a Blockchain || Error Object generated due to interrupt Type: Object
Method to locally save the Blockchain offline.
Returns: Async function to save Blockchain. Type: Promise
Method to save wallet address.
Returns: Async function to save Wallet private key. Type: Promise
FAQs
npm module to create blockchain
We found that chainmaker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.