0.0.4 • Published 3 years ago
quick-crypto v0.0.4
What is Quick-Crypto?
Quick Crypto is a javascript Data Miner and Blockchain simulator that allows for the user to simulate data-mining and the process of blockchains without setting up a server!
Fixes:
Fixed the test file showing undefined error when `username` and `api_key` aren't valid
Secret Feature or Upcoming Possibilities?
You may find that there is a feature called web-sim
this is an experimental feature (that loads preloaded data) to show how the blockchain operates through a graphical chart on a webpage. The data, in theory, is first captured by an event emitter and then shot out like a cannon, the web-sim will then catch the data with some magical powers and process it for you to view on your webpage!
TL;DR?
- Web-simulator to view data
- Designed to help with understanding
- Magically transported
spoopy, right?
Are There Examples?
When are't there!
BlockChains
const qc = require("quick-crypto");
// --------- Blockchains -----------
const Adam = new qc.Wallet() // create the user waller
const Jessica = new qc.Wallet()
const Frank = new qc.Wallet()
try {
Adam.sendMoney(50, Jessica.pubKey); // send the cash around
Jessica.sendMoney(25, Frank.pubKey);
Frank.sendMoney(5, Adam.pubKey);
// log the instance of the chain
console.log(qc.Chain.instance.chain); // log the chain for later use
} catch (e) {
console.log(e.error); // catch any errors
}
Graph it!
const qc = require("quick-crypto");
// --------- Graphing the chain! ---------
try{
// replace the "username" and "api_key" from
//https://chart-studio.plotly.com/settings/api#/
qcGraph.graphs.histogramBlue("username", "api_key"); // returns a blue histogram for transaction costs
qcGraph.graphs.histogramMulti("username", "api_key"); // returns a multi mistogram for users and transaction costs
} catch (e) {
console.log(e);
}
Code Support and Donations?
- Join the Discord Support Server
- Email Me: project-red-alice@outlook.com
- Want to Read About Me? Take a look at my site!