
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@frinkly/transaction-manager
Advanced tools
Request Network transaction layer, handle signature and encryption for the transaction.
@frinkly/transaction-manager is a typescript library part of the Request Network protocol.
It is the default implementation of the Transaction layer. It creates transactions to be sent to Data Access.
When privacy is implemented, this package will handle the encryption.
npm install @frinkly/transaction-manager
In order to decrypt encrypted transactions, you must provide a decryption provider. You can see the specification of decryption provider here.
An example of implementation of a decryption provider is available in the package: epk-decryption
import EthereumPrivateKeyDecryptionProvider from '@frinkly/epk-decryption';
import { TransactionManager } from '@frinkly/transaction-manager';
// Decryption provider setup
const decryptionProvider = new EthereumPrivateKeyDecryptionProvider({
key: '0x04674d2e53e0e14653487d7323cc5f0a7959c83067f5654cafe4094bde90fa8a',
method: EncryptionTypes.METHOD.ECIES,
});
// Potentially add another decryption key
decryptionProvider.addDecryptionParameters({
key: '0x0906ff14227cead2b25811514302d57706e7d5013fcc40eca5985b216baeb998',
method: EncryptionTypes.METHOD.ECIES,
});
const transactionManager = new TransactionManager(dataAccess, decryptionProvider);
import { DataAccessTypes, SignatureTypes } from '@frinkly/types';
import { TransactionManager } from '@frinkly/transaction-manager';
const dataAccess: DataAccessTypes.IDataAccess; // A Data Access implementation, for example @frinkly/data-access
const transactionManager = new TransactionManager(dataAccess);
const data = '{ what: "ever", it: "is,", this: "must", work: true }';
const channelId = 'myRequest';
const channelTopics = ['stakeholder1', 'stakeholder2'];
const { result } = await transactionManager.persistTransaction(data, channelId, channelTopics);
import { DataAccessTypes, SignatureTypes } from '@frinkly/types';
import { TransactionManager } from '@frinkly/transaction-manager';
const dataAccess: DataAccessTypes.IDataAccess; // A Data Access implementation, for example @frinkly/data-access
const transactionManager = new TransactionManager(dataAccess, decryptionProvider);
const data = '{ what: "ever", it: "is,", this: "must", work: true }';
const channelId = 'myRequest';
const channelTopics = ['stakeholder1','stakeholder2'];
const encryptionParameters: EncryptionTypes.IEncryptionParameters[] = [
{
key:
'299708c07399c9b28e9870c4e643742f65c94683f35d1b3fc05d0478344ee0cc5a6a5e23f78b5ff8c93a04254232b32350c8672d2873677060d5095184dad422',
method: EncryptionTypes.METHOD.ECIES,
},
{
key:
'9008306d319755055226827c22f4b95552c799bae7af0e99780cf1b5500d9d1ecbdbcf6f27cdecc72c97fef3703c54b717bca613894212e0b2525cbb2d1161b9',
method: EncryptionTypes.METHOD.ECIES,
}
]);
const { result } = await transactionManager.persistTransaction(data, channelId, channelTopics, encryptionParameters);
import EthereumPrivateKeyDecryptionProvider from '@frinkly/epk-decryption';
import { DataAccessTypes, SignatureTypes } from '@frinkly/types';
import { TransactionManager } from '@frinkly/transaction-manager';
const dataAccess: DataAccessTypes.IDataAccess; // A Data Access implementation, for example @frinkly/data-access
// Decryption provider setup if needed
const decryptionProvider = new EthereumPrivateKeyDecryptionProvider({
key: '0x04674d2e53e0e14653487d7323cc5f0a7959c83067f5654cafe4094bde90fa8a',
method: EncryptionTypes.METHOD.ECIES,
});
const transactionManager = new TransactionManager(dataAccess, decryptionProvider);
const channelId = 'myRequest';
const {
result: { transactions },
} = await transactionManager.getTransactionsByChannelId(channelId);
import EthereumPrivateKeyDecryptionProvider from '@frinkly/epk-decryption';
import { DataAccessTypes, SignatureTypes } from '@frinkly/types';
import { TransactionManager } from '@frinkly/transaction-manager';
const dataAccess: DataAccessTypes.IDataAccess; // A Data Access implementation, for example @frinkly/data-access
// Decryption provider setup if needed
const decryptionProvider = new EthereumPrivateKeyDecryptionProvider({
key: '0x04674d2e53e0e14653487d7323cc5f0a7959c83067f5654cafe4094bde90fa8a',
method: EncryptionTypes.METHOD.ECIES,
});
const transactionManager = new TransactionManager(dataAccess, decryptionProvider);
const channelTopic = 'stakeholder1';
const {
result: { transactions },
} = await transactionManager.getTransactionsByTopic(channelTopic);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Read the contributing guide
FAQs
Request Network transaction layer, handle signature and encryption for the transaction.
We found that @frinkly/transaction-manager 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.