
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@waves/node-state
Advanced tools
npm install @waves/node-state -D
node-state -n -e -o ./state.json
or node-state -n -e -o -m typescript ./state.ts
Options:
--help Show help [boolean]
--version Show version number [boolean]
--out, -o Out of result [string] [required]
--config, -c Path to config file [string]
--mode, -m Compile mode [choices: "json", "typescript"] [default: "json"]
--node, -n Need up node (port 6869) [boolean]
--explorer, -e Need up explorer (port 3000) [boolean]
node-state -n -m typescript -o ./tests/state.ts
;
import { NODE_URL, STATE, CHAIN_ID, MASTER_ACCOUNT } from './test/state.ts';
import { transfer, broadcast, waitForTx } from '@waves/waves-transactions';
it('Create transfer transaction', async () => {
const tx = transfer({
recipient: `alias:${CHAIN_ID}:${MASTER_ACCOUNT.ALIAS}`,
amount: 1000
}, STATE.ACCOUNTS.SIMPLE.seed);
await broadcast(tx);
await waitForTx(tx.id, { apiBase: NODE_URL }); // Transaction broadcast success!
});
export const MASTER_ACCOUNT = {
"SEED": "waves private node seed with waves tokens",
"ADDRESS": "3M4qwDomRabJKLZxuXhwfqLApQkU592nWxF",
"PUBLIC_KEY": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV",
"ALIAS": "master"
};
export const NODE_URL = "http://localhost:6869";
export const CHAIN_ID = "R";
export const NETWORK_BYTE = 82;
export const STATE = {
"ACCOUNTS": {
"FOR_SCRIPT": {
"seed": "yellow pulp memory brick mimic myself hungry amount canal crop service stuff bachelor pilot mention",
"address": "3MPXEgRCmT5cdsFKkq9x5mbiT3oCQ4ZjYw5",
"publicKey": "AZkHyW5o11h2RerR2e7tF4mRUZED5aAW33sHAAAkseKY",
"scripted": true
}
},
"ASSETS": {
"BTC": {
"type": 3,
"version": 2,
"senderPublicKey": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV",
"name": "WBTC",
"description": "WBTC description",
"quantity": 100000000000000,
"decimals": 8,
"reissuable": false,
"fee": 100000000,
"timestamp": 1573820086719,
"chainId": 82,
"proofs": [
"5YJF6zKSqMN315phAGDhT2fiKyHkZF3j46YAkwXM4f2THdjw4KFSmvbA5omi12ybWpBuqryJLbC9MdCDNSpRDyYg"
],
"id": "DEtwtnL41USBmnoU4UN1rqhHGBKvLLqpH483TV6GK4Sy"
},
}
};
{
"ACCOUNTS": {
"FOR_SCRIPT": {
"seed": "usual scatter episode relax spy subway tuna around define expect kit wall cupboard list one",
"address": "3M2a7rdLCfStGjMJVQjmiTYCZUdgs7eYkkR",
"publicKey": "BsmaQyjqTmMX4mNoYo9RzV9H8GWtMJb6WPcgB2MNRzBU",
"scripted": true
}
},
"ASSETS": {
"BTC": {
"type": 3,
"version": 2,
"senderPublicKey": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV",
"name": "WBTC",
"description": "WBTC description",
"quantity": 100000000000000,
"decimals": 8,
"reissuable": false,
"fee": 100000000,
"timestamp": 1573820268769,
"chainId": 82,
"proofs": [
"nMtaXPFnAAasKhryqbwVco2SHro87X5vsDAwQmBjpprPaG3DVRSfQrNUKjAf3ejQatxQqSEkFCfPdEa74ALomM9"
],
"id": "EeojFwKrozm9mpHvmYt6N5qnwhGTo8ztXpxogcHHYw8s"
},
"MASTER_ACCOUNT": {
"SEED": "waves private node seed with waves tokens",
"ADDRESS": "3M4qwDomRabJKLZxuXhwfqLApQkU592nWxF",
"PUBLIC_KEY": "AXbaBkJNocyrVpwqTzD4TpUY8fQ6eeRto9k1m2bNCzXV",
"ALIAS": "master"
},
"NODE_URL": "http://localhost:6869",
"CHAIN_ID": "R",
"NETWORK_BYTE": 82
}
}
{
// Assets for deploy to node state
"ASSETS": {
"BTC": {
// Required. Name of asset
"name": "Asset name",
// Optional. Description of asset
"description": "Asset description",
// Optional. Decimals of asset. Default 8
"decimals": 4,
// Optional. Quantity of asset coins. Default 100000000000000
"quantity": 100,
// Optional. Reissuable of asset. Default true
"reissuable": true
}
},
"ACCOUNTS": {
// Account name for usage from tests
"FOR_SCRIPT": {
// Optional. Script for deploy to account. Choices [boolean or "dApp" or base64 string]
"script": "dApp",
// Optional. Create alias for account
"alias": true,
// Optional. Balance for account
"balance": {
// Hash with key in Key of ASSETS and value is coins of asset
"BTC": 10000000
},
// Optional. Data state for account. Not supported, in development.
"data": {
// Key of data state
"someKey": {
// Type of field. Can be "integer" of "binary" of "boolean" or "string"
"type": "integer",
// Value for data state
"value": 1000
}
}
}
}
}
FAQs
### install
The npm package @waves/node-state receives a total of 8 weekly downloads. As such, @waves/node-state popularity was classified as not popular.
We found that @waves/node-state demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.