Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the JS miner #1

Open
OluAgunloye opened this issue May 8, 2018 · 0 comments
Open

Using the JS miner #1

OluAgunloye opened this issue May 8, 2018 · 0 comments

Comments

@OluAgunloye
Copy link

Hi,

I've struggled to use the JS miner and get it work like the compiled go miner.

This is what I've ended up with:

global.SipHash = require('./siphash-lib')
require('./miner_js')

console.log(cuckoo.mine_cuckoo(Buffer.from('SUAubf5VPhoL4BdJFEAr1YYJcjspCMKrVjq5wpu7Llg=', 'base64'), 50));

The base64 string is a header I got from the output of the Go miner.

However, the JS miner always outputs res[0] = D^: ''.

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant