Giter Site home page Giter Site logo

gab5ter / orehash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vertcoin-project/vertcoinhash

0.0 1.0 1.0 120 KB

Node.js native module for Galactrum proof of work functions

License: MIT License

C 97.88% C++ 1.64% Python 0.10% JavaScript 0.38%

orehash's Introduction

orehash

orehash is a Node.js native module for Galactrum proof of work functions. It provides methods for Lyra2RE, Lyra2REv2 and Scrypt-N(2048).

Usage

var orehash = require('orehash');

var buf = Buffer.from('700000005d385ba114d079971b29a9418fd0549e7d68a95c7f168621a314201000000000578586d149fd07b22f3a8a347c516de7052f034d2b76ff68e0d6ecff9b77a45489e3fd511732011df0731000', 'hex');

console.log(orehash.SumLyra2REv3(buf));
console.log(orehash.SumLyra2REv2(buf));
console.log(orehash.SumLyra2RE(buf));
console.log(orehash.SumScryptN(buf));

Note

When running npm test, if the below error happens:

Error: Could not locate the bindings file.

Do the following:

sudo npm install -g node-gyp
node-gyp rebuild

orehash's People

Contributors

gab5ter avatar metalicjames avatar gertjaap avatar

Watchers

James Cloos avatar

Forkers

galactrum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.