User protocol upgrade and js client lib. (#191)

* Unified js client lib for browser and nodejs.
* Client lib multiple connections support.
* Implemented server challenge response.
* Contract guid and version validation.
* Server key validation.
* User json message encoding improvements.
This commit is contained in:
Ravin Perera
2020-12-11 11:02:58 +05:30
committed by GitHub
parent b77a3fc924
commit f2ed9040c0
34 changed files with 1202 additions and 905 deletions

View File

@@ -84,7 +84,7 @@ do
# Update contract config.
node -p "JSON.stringify({...require('./tmp.json'), \
contractid: 'dummy', \
contractid: '3c349abe-4d70-4f50-9fa6-018f1f2530ab', \
binary: '$binary', \
binargs: '$binargs', \
appbill: '', \

View File

@@ -364,7 +364,7 @@ do
# Merge json contents to produce final contract config.
echo "$(cat ./cfg/node$n.cfg)" \
'{"contractid":"dummy"}' \
'{"contractid":"3c349abe-4d70-4f50-9fa6-018f1f2530ab"}' \
'{"binary":"/usr/bin/node"}' \
'{"binargs":"'$basedir'/hpfiles/nodejs_contract/echo_contract.js"}' \
'{"peers":'${mypeers}'}' \