mirror of https://github.com/BTCPrivate/copay.git
optimize utxos transmission
This commit is contained in:
parent
8679b4eb8c
commit
d4df5258fe
10
README.md
10
README.md
|
@ -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
|
||||
```
|
||||
|
|
|
@ -48,8 +48,8 @@ then
|
|||
rm -rf $PROJECT
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d $PROJECT ]; then
|
||||
echo "ghola"
|
||||
cd $BUILDDIR
|
||||
echo "${OpenColor}${Green}* Creating project... ${CloseColor}"
|
||||
cordova create project com.bitpay.copay Copay
|
||||
|
@ -97,7 +97,7 @@ cd $BUILDDIR/..
|
|||
grunt
|
||||
checkOK
|
||||
|
||||
echo "${OpenColor}${Green}* Copying files...${CloseColor}"
|
||||
echo "${OpenColor}${Green}* Coping files...${CloseColor}"
|
||||
cd $BUILDDIR/..
|
||||
cp -af {css,font,img,js,lib,sound,views,config.js,version.js,init.js} $PROJECT/www
|
||||
checkOK
|
||||
|
|
427
lib/bitcore.js
427
lib/bitcore.js
File diff suppressed because one or more lines are too long
|
@ -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);
|
Loading…
Reference in New Issue