Skip to content

Instantly share code, notes, and snippets.

View Vishwas1's full-sized avatar
🎯
Focusing

Vishwas Anand Bhushan Vishwas1

🎯
Focusing
View GitHub Profile
var Utility = {
onFileSystemSuccess : function(){
fileSystem.getDirectory("batch", {
create: false,
exclusive: false
}, onGetDirectorySuccess, onGetDirectoryFail);
}
};
pragma solidity ^0.4.2;
contract AssetTracker{
address [] public sharers;
address public creator;
constructor() public{
creator = msg.sender;
}
## Electrum Personal Server configuration file
## Comments start with #
[master-public-keys]
## Add electrum master public keys to this section
## Create a wallet in electrum then go Wallet -> Information to get the mpk
#any_name_works = xpub661MyMwAqRbcFseXCwRdRVkhVuzEiskg4QUp5XpUdNf2uGXvQmnD4zcofZ1MN6Fo8PjqQ5cemJQ39f7RTwDVVputHMFjPUn8VRp2pJQMgEF
@Vishwas1
Vishwas1 / test.md
Last active January 25, 2019 08:34

{{ < youtube id="HmtNylgZ8Zg" width="100%" > }}

----WHAT?---------------------

Proxy re-encryption is a set of algorithms which allows an untrusted proxy to transform ciphertext (homomorphic encryption) from being encrypted under one key to another, without learning anything about the underlying plaintext.

----BIGGER PICTURE------------

  • file sharing use case (m-to-m)
  • group chat use case
  • EHR use case
## Electrum Personal Server configuration file
## Comments start with #
[master-public-keys]
## Add electrum master public keys to this section
## Create a wallet in electrum then go Wallet -> Information to get the mpk
#any_name_works = xpub661MyMwAqRbcFseXCwRdRVkhVuzEiskg4QUp5XpUdNf2uGXvQmnD4zcofZ1MN6Fo8PjqQ5cemJQ39f7RTwDVVputHMFjPUn8VRp2pJQMgEF
regtest=1
rpcuser=bitcoinuser
rpcpassword=bitcoinpass
rpcallowip=127.0.0.1
rpcconnect=127.0.0.1
gen=1
server=1
HTTP_PORT=11626
PUBLIC_HTTP_PORT=true
RUN_STANDALONE=false
LOG_FILE_PATH=""
NETWORK_PASSPHRASE="Standalone Zagg Network ; Oct 2018"
NODE_SEED="SCHE4W7T6VEQHETUFNGQUCDRACMHLUIQQETCMIW6HRB5B7CN2GY6RY3S zaggnode01"
NODE_IS_VALIDATOR=true

Setup Zagg-core

  • clone zagg-core git@github.com:zagg-protocol/zagg-core.git
  • configure bitcoin.conf file
  • Put it in the folder /home/vishswasb/.bitcoin - by deffault bitcoin folder. change the according to yours.
  • configure stellar-core.cfg file
  • Make sure to configure stellar configuration as per stellar's specs like creating newdb, forcescp etc. you can follow this blog for that.
  • Put this file in the root directory of the project : zagg-core/src
  • Open terminal, navigate into directory zagg-core/src and run the command ./stellar-core --conf ../stellar-core.cfg
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:198: undefined reference to `SetupEnvironment()'
main/stellar_core-main.o: In function `AppInit':
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:68: undefined reference to `gArgs'
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:68: undefined reference to `ArgsManager::ParseParameters(int, char const* const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:74: undefined reference to `gArgs'
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:74: undefined reference to `HelpRequested(ArgsManager const&)'
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:75: undefined reference to `FormatFullVersion[abi:cxx11]()'
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:77: undefined reference to `gArgs'
/home/vishswasb/work/proj/zagg/zagg-core/src/main/main.cpp:77: undefined reference to `ArgsManager::IsArgSet(std::__cxx