Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using the JS miner #1

@OluAgunloye

Description

@OluAgunloye

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions