decred / bitcore Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bitpay/bitcore
Decred fork of bitcore.
License: Other
This project forked from bitpay/bitcore
Decred fork of bitcore.
License: Other
related issue decred/bitcore-wallet-client#11
Sorry if asking here, Do this actually work https://github.com/peterzen/bitcoinjs-lib-decred/commits/decred-support ? @peterzen
Please correct me where i'm worng to create Decred(DCR) address
var bitcore = require('bitcore');
var Network = bitcore.Networks.add({
name: 'dcrdlivenet',
alias: 'dcrmainnet',
pubkeyhash: 0x073f,
privatekey: 0x22de,
scripthash: 0x071a,
xpubkey: 0x02fda926,
xprivkey: 0x02fda4e8,
networkMagic: 0xf900b4d9,
port: 9108,
dnsSeeds: [
'mainnet-seed.decred.mindcry.org',
'mainnet-seed.decred.netpurgatory.com',
'mainnet.decredseed.org',
'mainnet-seed.decred.org'
],
defaultClientPort: 9108
})
var dcrNetwork = bitcore.Networks.get(Network)
var privateKey = bitcore.PrivateKey(dcrNetwork);
var publicKey = bitcore.PublicKey.fromPrivateKey(privateKey, dcrNetwork);
console.log(bitcore.Address.fromPublicKey(publicKey, dcrNetwork))
just on npm install:
Several Errors during node-gyp rebuild process
`In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:339:13: error: no member named 'New' in 'v8::String'
return _NAN_ERROR(v8::Exception::Error, errmsg);
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
`
node-gyp rebuild
CXX(target) Release/obj.target/KeyModule/src/eckey.o
../src/eckey.cc:8:10: fatal error: 'node_internals.h' file not found
OSX 10.13.4, nvm, node 10.15.1
**also tested on linux
***also Failed at the [email protected] install script.
On branch master-new
$ gulp browser
[11:41:22] Using gulpfile xxx/gulpfile.js
[11:41:23] Task 'browser' is not in your gulpfile
[11:41:23] Please check the documentation for proper gulpfile formatting
$ gulp -v
[11:44:28] CLI version 3.8.11
[11:44:28] Local version 3.9.1
$ node -v
v8.10.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.