Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@energyweb/ddhub-client
Advanced tools
Used to communicate with Energyweb DDHUB messaging server
yarn add @energyweb/greenproof-ddhub-client
const client = new DDHubClient({
config: [
{
channelName: 'receive_input',
channelType: 'sub',
conditions: { roles: ['provider.roles.247.apps.energyweb.iam.ewc'], dids: [] },
encrypted: true,
topicName: 'data_provider',
topicVersion: '1.0.0',
},
{
channelName: 'send_results',
channelType: 'upload',
conditions: { roles: ['cache.roles.247.apps.energyweb.iam.ewc'], dids: [] },
encrypted: true,
topicName: 'result_provider',
topicVersion: '1.0.0',
},
],
ownerNamespace: '247.apps.energyweb.iam.ewc',
privateKey: 'fd055324f73...2ea45bc8114839e0703e185d',
ddhubUrl: 'https://client-gateway.energyweb.org/api/v2/',
});
await client.setup();
const [message] = await client.getMessages({
fqcn: 'receive_input',
amount: 1
})
const result = await someLogic(message);
await client.sendMessage({
fqcn: 'send_results',
payload: JSON.stringify(result),
transactionId: '1'
})
For questions and support please use Energy Web's Discord channel
Or reach out to us via email: 247enquiries@energyweb.org
The Energy Web Decentralized Operating System is a blockchain-based, multi-layer digital infrastructure.
The purpose of EW-DOS is to develop and deploy an open and decentralized digital operating system for the energy sector in support of a low-carbon, customer-centric energy future.
We develop blockchain technology, full-stack applications and middleware packages that facilitate participation of Distributed Energy Resources on the grid and create open market places for transparent and efficient renewable energy trading.
To learn about more about the EW-DOS tech stack, see our documentation.
For an overview of the energy-sector challenges our use cases address, go here.
For a deep-dive into the motivation and methodology behind our technical solutions, we encourage you to read our White Papers:
FAQs
Used to communicate with Energyweb DDHUB messaging server
We found that @energyweb/ddhub-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.