optimize utxos transmission

This commit is contained in:
Matias Alejo Garcia 2014-11-20 19:39:07 -03:00
parent 8679b4eb8c
commit d4df5258fe
4 changed files with 229 additions and 253 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
```

View File

@ -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

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