
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@kyve/logic
Advanced tools
@kyve/logic
A protocol for verified data streams.
yarn add @kyve/logic
import KYVE from "@kyve/logic";
const node = new KYVE();
KYVE requires two custom functions. One which fetches the data from your data source and one which validates this data. You can then simply add these two functions into the KYVE instance.
To pass data into KYVE, simply call subscriber.next()
:
const myDataFetcher = async (subscriber) => {
// use your custom logic here
const data = ...
subscriber.next({ data });
}
You can also optionally add custom tags to your transactions:
const myDataFetcher = async (subscriber) => {
// use your custom logic here
const data = ...
const tags = [...]
subscriber.next({ data, tags });
}
const myDataValidator = async (subscriber) => {
// fetch the data uploaded onto Arweave
const fetchedData = ...
const arweaveTxId = ...
// validate the data with your custom logic
const isValid = ...
// pass the result into KYVE
subscriber.next({ valid: isValid, id: arweaveTxId });
}
import KYVE from "@kyve/logic";
const node = new KYVE(myDataFetcher, myDataValidator);
Next you need to set up the pool. You can create a new pool here. After you have created the pool, insert its name and your arweave keyfile into the node config:
import KYVE from "@kyve/logic";
const pool = "demo-pool";
const jwk = ...
const node = new KYVE(myDataFetcher, myDataValidator, { pool, jwk });
To run your node, simply call the .run()
function:
import KYVE from "@kyve/logic";
const pool = "demo-pool";
const jwk = ...
const node = new KYVE(myDataFetcher, myDataValidator, { pool, jwk });
(async () => {
await node.run();
})();
FAQs
<code>@kyve/logic</code> <p align="ce
The npm package @kyve/logic receives a total of 0 weekly downloads. As such, @kyve/logic popularity was classified as not popular.
We found that @kyve/logic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.