3s3s / atomicswaps

Atomic Swaps for criptocurrencies
8 stars 5 forks source link

compilations error - please assist #1

Open 0x-m1cro opened 1 year ago

0x-m1cro commented 1 year ago

Hello mate,

I'm receiving following error message when compiling,

Error: Can't walk dependency graph: Cannot find module './private' from 'D:\p2plib-main\atm\source\utils.js'

Any idea why .private is missing

Help much appreciated, Thanks!

Best,

3s3s commented 1 year ago

you should create file private.js with the content like this:

exports.serverDHkeys = {
    sec: <Diffie–Hellman key>
}

exports.RPC = {
    "xmr": [
        {host:"http://opennode.xmr-tw.org:18089"},
        {host:"http://xmr.support:18081"}
    ]
}

But firstly you should generatre the <Diffie–Hellman key> value with this function: https://github.com/3s3s/atomicswaps/blob/d3b906ef44b24789b9480ce235d934037bfaf150/source/utils.js#L167