npm.io
0.1.13 • Published 4 years ago

hyperhasher

Licence
Creative Commons CC0 1.0
Version
0.1.13
Deps
0
Size
10 kB
Vulns
0
Weekly
0

Hyper-Hasher

A Simple BlockChain Library for rust and js

Examples

const {Block, Chain} = require('hyperhasher');

let chain = new Chain();

let block = new Block("DATA_FOR_THE_BLOCK",chain);

chain.push(block);
use hyperhasher::{Block, Chain};

fn main() {
    let mut chain = Chain::new();
    let block = Block::new(String::from("DATA_FOR_THE_BLOCK"),&chain);
    chain.push(block);
}

Keywords