Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@aldea/sdk-js
Advanced tools
A Swiss Army knife for Aldea app developers.
The Aldea JavaScript SDK provides utility classes and functions for working with Aldea data types, creating and managing keys, building and signing transactions, and interfacing with an Aldea node.
The Aldea SDK is published to the NPM registry. Install the SDK into your project with npm
or your preferred alternative NPM client:
npm install @aldea/sdk-js
Aldea uses BLAKE3-flavoured Ed25519 cryptography. Keys and addresses can be generated using the SDK:
import { KeyPair, Address } from '@aldea/sdk-js'
const keys = KeyPair.fromRandom()
const address = Address.fromPubKey(keys.pubKey)
console.log(keys.privKey.toHex())
console.log(keys.pubKey.toHex())
console.log(address.toString())
Connect to your own or a public node to interface with the Aldea Computer.
import { Aldea } from '@aldea/sdk-js'
const aldea = new Aldea('https://node.aldea.computer')
// Examples
const tx = await aldea.getTx(txid)
const output = await aldea.getOutput(outputId)
Once you have a connection to a noce, you can use the Aldea
instance to build new transactions.
const tx = await aldea.createTx(tx => {
const coin = tx.load(coinOutputId)
const token = tx.load(jigOutputId)
tx.call(token, 'send', [1000, recipient])
tx.send(coin, 'send', [500, myNewAddress])
tx.fund(coin)
tx.sign(keys.privKey)
})
const txRes = await aldea.commitTx(tx)
Aldea is open source and released under the Apache-2 License.
© Copyright 2023 Run Computer Company, inc.
FAQs
A Swiss Army knife for Aldea app developers.
The npm package @aldea/sdk-js receives a total of 0 weekly downloads. As such, @aldea/sdk-js popularity was classified as not popular.
We found that @aldea/sdk-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.