optimize utxos transmission

This commit is contained in:
Matias Alejo Garcia 2014-11-20 19:39:07 -03:00
commit d4df5258fe
4 changed files with 227 additions and 251 deletions

View file

@ -187,3 +187,13 @@ is named *peerId*.
Registering with a hash avoids disclosing the copayerId to parties outside of the WR. 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 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. 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
```

View file

@ -48,8 +48,8 @@ then
rm -rf $PROJECT rm -rf $PROJECT
fi fi
fi fi
if [ ! -d $PROJECT ]; then if [ ! -d $PROJECT ]; then
echo "ghola"
cd $BUILDDIR cd $BUILDDIR
echo "${OpenColor}${Green}* Creating project... ${CloseColor}" echo "${OpenColor}${Green}* Creating project... ${CloseColor}"
cordova create project com.bitpay.copay Copay cordova create project com.bitpay.copay Copay
@ -97,7 +97,7 @@ cd $BUILDDIR/..
grunt grunt
checkOK checkOK
echo "${OpenColor}${Green}* Copying files...${CloseColor}" echo "${OpenColor}${Green}* Coping files...${CloseColor}"
cd $BUILDDIR/.. cd $BUILDDIR/..
cp -af {css,font,img,js,lib,sound,views,config.js,version.js,init.js} $PROJECT/www cp -af {css,font,img,js,lib,sound,views,config.js,version.js,init.js} $PROJECT/www
checkOK checkOK

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);