Merge pull request #1853 from matiu/opt/utxos2

Opt/utxos2
This commit is contained in:
Matias Alejo Garcia 2014-11-22 13:25:45 -03:00
commit a1159189ba
4 changed files with 225 additions and 249 deletions

View file

@ -187,3 +187,13 @@ is named *peerId*.
Registering with a hash avoids disclosing the copayerId to parties outside of the WR.
Peer discovery is accomplished using only the hashes of the WR members' copayerIds. All members of the WR
know the full copayerIds of all the other members of the WR.
Bitcore
-------
Copay uses the Javascript library Bitcore for Bitcoin related functions. Bitcore should be built this way:
```
var cmd = `node util/build_bitcore.js`
cd <BITCORE_HOME>
node $cmd
```

0
cordova/build.sh Normal file → Executable file
View file

File diff suppressed because one or more lines are too long

41
util/build_bitcore.js Executable file
View file

@ -0,0 +1,41 @@
var modules = [
'lib/Address',
'lib/AuthMessage',
'lib/Base58',
'lib/HierarchicalKey',
'lib/BIP21',
'lib/Deserialize',
'lib/ECIES',
'lib/Message',
'lib/Opcode',
'lib/PayPro',
'lib/PrivateKey',
'lib/Key',
'lib/Point',
'lib/SIN',
'lib/SINKey',
'lib/Script',
'lib/SecureRandom',
'lib/sjcl',
'lib/Transaction',
'lib/TransactionBuilder',
'lib/Wallet',
'lib/WalletKey',
'patches/Buffers.monkey',
'patches/Number.monkey',
'config',
'const',
'networks',
'util/log',
'util/util',
'util/EncodedData',
'util/VersionedData',
];
var cmd = 'node browser/build.js -s '
cmd = cmd + modules.join(',');
console.log(cmd);