Author

Topic: Graphene and HyperLedger Fabric (Read 143 times)

member
Activity: 98
Merit: 11
January 30, 2018, 12:11:18 PM
#2
A lot of Politicians say "I am going to fix the VA", or and let me explain how that is done.

In Indiana at the DMV, there is a guy that  takes all the Learner's Permits in, and he approves and files them by hand, and puts them into a filing cabinet. If you go to his office and set it on fire, all of those records are gone. So they want that fixed. That is the VA, there are people writing appointments by hand sometimes, and other things are done by hand, and then take time to get into the System. And the System is not connected to other Systems.

If you owe Child Support, the Courts will ping the State System and National System, then you will lose your Fishing License. But the VA still has people doing things by hand.

That is how to fix the VA, it is the System.
member
Activity: 98
Merit: 11
January 28, 2018, 09:53:06 PM
#1
I recently figured out how to Clone Cryptonotes, Scrypt Coins, then Ethereum. Now I am going to start on Graphene and HyperLedger. And I am going to show everyone how to do it as I do it, so that anyone can do it.

Here is the Cryptonote thread
https://bytecointalk.org/showthread.php?tid=1218

Here is the Ethereum thread
https://bitcointalksearch.org/topic/clonining-ethereum-is-easier-than-making-a-cryptonote-or-forknote-here-is-how-2806271

Graphene

That is Ethereum, Ethereum allows people to create Smart-Contracts/Tokens, right? Bitshares was the first Coin to do that, and the Bitshares Tokens are called User Issued Assets (UIAs). The OpenLedger Platform is a Decentralized Exchange Platform, where Nodes are held open by people who are Voted for. So no single person or Company really operates it, it exists on a Blockchain.



Here is OpenLedger
https://openledger.info/

Here is the Cryptofresh Blockchain Explorer, which keeps track of the Transactions on OpenLedger.
http://cryptofresh.com/

All of that is on the Blockchain.

Here is the OpenLedger Github Repo
https://github.com/bitshares/bitshares-core

Bitshares UI
https://github.com/bitshares/bitshares-ui

So, that is the Smart Contracts and the Exchange.

Now, more recently Steemit was made. Which is like OpenLedger, but Social. And it is like Reddit, where you can Vote.
https://steemit.com/

Here is an example of a Steemit Fork
https://github.com/Someguy123/understeem

Steemit Copied Synero

Synero
https://bitcointalksearch.org/topic/pre-ann-synereo-a-fully-decentralized-social-network-owned-by-you-827782
https://bitcointalksearch.org/topic/annico-simdaq-platform-for-crypto-trading-2413752
http://www.synereo.com/
https://themerkle.com/synereo-bringing-crypto-and-social-media-on-a-revolutionary-platform/

Synereo Git Repo
https://github.com/synereo/synereo

Here is the Graphene Blockchain
https://github.com/cryptonomex/graphene

Here is how to use it
https://objectcomputing.com/resources/publications/sett/march-2017-graphene-an-open-source-blockchain/

And we are just trying to create any kind of Social Media Platform on the Blockchain.

Here are some examples

Social/Social Media Blockchains
https://bitcointalksearch.org/topic/anntokensale-allme-the-social-network-of-blockchain-era-2657895
https://bitcointalksearch.org/topic/annicosocialmediamarkettoken-sale-is-closed-thank-you-for-support-2291309
https://bitcointalksearch.org/topic/annexchange-ready-onz-rewarding-social-content-2677363
https://bitcointalksearch.org/topic/bounty-gilgamesh-books-knowledge-platform-2461878
https://bitcointalksearch.org/topic/ann-poet-digital-creative-assets-timestamped-onto-the-blockchain-2027214
https://bitcointalksearch.org/topic/annico-man-matrix-the-intelligent-blockchain-2648330
https://bitcointalksearch.org/topic/sether-arbitrating-advertising-2407336
https://bitcointalksearch.org/topic/ann-taklimakan-network-social-and-business-platform-for-crypto-community-2426759
https://bitcointalksearch.org/topic/anntoken-sale-zpay-network-token-blockchain-for-global-payment-solutions-2519264
https://bitcointalksearch.org/topic/icobounty-heartbout-a-social-network-with-a-decentralized-incentive-system-2567795
https://bitcointalksearch.org/topic/annico-sphere-decentralized-social-networking-200000-users-2437581
https://bitcointalksearch.org/topic/annpresale-active-nauio-disruptive-digital-coupons-platform-on-blockchain-2348476
https://bitcointalksearch.org/topic/annicokahnchat-mobile-payment-and-social-networking-crowdsale-live-now-2644550
https://bitcointalksearch.org/topic/annico-vanywhere-worlds-1-skill-sharing-platform-on-the-blockchain-2432816
https://bitcointalksearch.org/topic/annicocredits-new-blockchain-for-financial-industry-hardcap-reached-2401248
https://bitcointalksearch.org/topic/ann-ito-nov-15-publiq-network-blockchain-distributed-media-2398117
https://bitcointalksearch.org/topic/--2447583
https://bitcointalksearch.org/topic/project-interzone-blockchain-social-engine-2158960
https://bitcointalksearch.org/topic/annicokryptopycomplete-cryptocurrency-social-network-for-traders-2234738
https://bitcointalksearch.org/topic/travelflex-decentralized-social-network-payment-system-2570851
https://bitcointalksearch.org/topic/ann-ico-vzt-vezt-blockchain-secured-music-monetization-platform-2191554
https://bitcointalksearch.org/topic/bounty-pre-ico-geopin-blockchain-based-interface-to-the-physical-world-2372042
https://bitcointalksearch.org/topic/annsale-hdac-blockchain-based-iot-contracts-by-hyundai-27th-november-2402330
https://bitcointalksearch.org/topic/bounty-smschain-the-first-telecom-decentralized-blockchain-platform-2344257
https://bitcointalksearch.org/topic/pre-ico-stockus-fantasy-trading-blockchain-platform-2046801
https://bitcointalksearch.org/topic/annhstico-horizon-state-decision-token-voting-platform-sale-over-2187641
https://bitcointalksearch.org/topic/bounty-v10-closed-cryptoalias-get-your-blockchain-identity-2206682
https://bitcointalksearch.org/topic/closedico-zilliqa-high-throughput-blockchain-platform-2367256
https://bitcointalksearch.org/topic/ann-ico-florio-the-first-blockchain-based-health-platform-2313303
https://bitcointalksearch.org/topic/ann-ico-florio-the-first-blockchain-based-health-platform-2313303
https://bitcointalksearch.org/topic/annairdrop-xnn-xenon-massively-distributed-eos-alt-chain-2209559
https://bitcointalksearch.org/topic/annico-wanchain-connecting-blockchains-to-exchange-value-2110925
https://bitcointalksearch.org/topic/annicobpcrevolution-in-digital-advertising-powered-by-blockchain-2291332

Graphene Bots

https://steemit.com/bots/@personz/a-new-voter-bot-newer-smarter-freer
https://steemit.com/cryptocurrency/@steemitprime/steemit-bot-2017-increase-upvote-and-follower-100-working
https://steemit.com/steemit/@cerebralace/how-to-use-the-steemit-voting-bots
https://steemit.com/steemit/@hoschitrooper/bots-bots-and-bots
https://steemit.com/steem/@heimindanger/don-t-use-vote-selling-bots-use-promoted-instead-a-bot-that-upvotes-you-when-you-burn-money
https://steemit.com/guide/@bitcoinparadise/do-you-want-to-run-you-own-voting-bot

reating a new Genesis File

http://docs.bitshares.org/testnet/private-testnet.html

Customizing the Genesis file

http://docs.bitshares.org/testnet/private-testnet.html#customization-of-the-genesis-file

The Bottom 2 Sections here explain creating a New Graphene Blockchain with a new Genesis Block

https://objectcomputing.com/resources/publications/sett/march-2017-graphene-an-open-source-blockchain/

Steemit is a Reddit Clone, and is limited in that fact. Of all the Social Media Websites on the Internet, Reddit is not really the best example. Reddit is almost secondary. Everyone is either on Facebook, Twitter or Instagram, or all of them. But Reddit is Secondary, like YouTube.

Steemit would do much better as a YouTube platform, where videos are uploaded and earn money, instead of Blogs. We will be launching a YouTube Graphene Clone eventually if someone else doesn’t.

That explains Steemit on a superficial level. I am not saying that Steemit is a failure, I am saying that it would be better if there were a YouTube version.

So secondly, Steemit is a platoform connected to a Coin. There is a backend to Steemit, called Steemd, and you can look at Steemd, just google it. And there are other things, like Blocktrades, which actually connects Steemit and Bitshares. The coin called STEEM, is a DPoWS, which stands for Delegated Proof of Work and Stake.

So let me explain what Delegated Proof of Work and Stake means:

Proof of Work is like Bitcoin and Litecoin and Dogecoin, where everyone Mines with Mining Machines.

Proof of Stake is like Temple Coin or PeerCoin or various other Coins. The way Proof of Stake Works in Steemit, is that anyone that has Coins, has Coins that gain value. And they gain value at a very very high rate the first year or something, then they don’t gain as much after that. And you get coins via Proof of Work, or via Delegated Votes on your Steemit posts, which awards you STEEM from the Blockchain.

Delegated means that the Proof of Work is Voted on, this is done through the “Witness” system. And any Computer or Server or Laptop or anything can be a Node and be a Witness. And Witnesses have the Obligation to Hold Open Nodes, and Mine Coins, which processes transactions and keeps the Blockchain moving. And they get a lot of Coins out of that. Delegated also applies to the Voting on Posts. On Steemit, you get paid when you get Votes, you get paid for Voting (more for posts that end up being popular and you voted early), and you can get votes on your Comments on Steemit. So the Delegated part is important to Steemit.

Here is the Witness page on Steemit
https://steemit.com/~witnesses

Witnesses are secretly very important to Steemit, and anyone can become one by being voted for, but they don’t advertise that because they don’t want to get taken over.

So that is the basics of how Steemit works.

Once you have Bitshares and Bitshares UI donwloaded, here is what you are supposed to do

Code:
dhcp19:graphene phil$ cd programs/witness_node
dhcp19:witness_node phil$ ./witness_node --rpc-endpoint 127.0.0.1:8090 --enable-stale-production -w '"1.6.0"'
2560491ms th_a       main.cpp:126                  main                 ] Writing new config file at /tao_builds/phil/projects/blockchain/phil/graphene/programs/witness_node/witness_node_data_dir/config.ini
2560511ms th_a       witness.cpp:89                plugin_initialize    ] witness plugin:  plugin_initialize() begin
2560511ms th_a       witness.cpp:99                plugin_initialize    ] key_id_to_wif_pair: ["GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
2560511ms th_a       witness.cpp:117               plugin_initialize    ] witness plugin:  plugin_initialize() end
2560512ms th_a       application.cpp:357           startup              ] Replaying blockchain due to version upgrade
2560512ms th_a       application.cpp:254           operator()           ] Initializing database...
2560518ms th_a       db_management.cpp:51          reindex              ] reindexing blockchain
2560518ms th_a       db_management.cpp:104         wipe                 ] Wiping database
2560549ms th_a       object_database.cpp:87        wipe                 ] Wiping object database...
2560549ms th_a       object_database.cpp:89        wipe                 ] Done wiping object databse.
2560549ms th_a       object_database.cpp:94        open                 ] Opening object database from /tao_builds/phil/projects/blockchain/phil/graphene/programs/witness_node/witness_node_data_dir/blockchain ...
2560549ms th_a       object_database.cpp:100       open                 ] Done opening object database.
2560560ms th_a       db_debug.cpp:85               debug_dump           ] total_balances[asset_id_type()].value: 0 core_asset_data.current_supply.value: 1000000000000000
2560560ms th_a       db_management.cpp:58          reindex              ] !no last block
2560560ms th_a       db_management.cpp:59          reindex              ] last_block:  
2560562ms th_a       thread.cpp:95                 thread               ] name:ntp tid:123145365336064
2560562ms th_a       thread.cpp:95                 thread               ] name:p2p tid:123145366409216
2560566ms th_a       application.cpp:143           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:64207
2560568ms th_a       application.cpp:195           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
2560568ms th_a       witness.cpp:122               plugin_startup       ] witness plugin:  plugin_startup() begin
2560568ms th_a       witness.cpp:129               plugin_startup       ] Launching block production for 1 witnesses.
 
********************************
*                              *
*   ------- NEW CHAIN ------   *
*   - Welcome to Graphene! -   *
*   ------------------------   *
*                              *
********************************
 
Your genesis seems to have an old timestamp
Please consider using the --genesis-timestamp option to give your genesis a recent timestamp
 
2560568ms th_a       witness.cpp:140               plugin_startup       ] witness plugin:  plugin_startup() end
2560568ms th_a       main.cpp:179                  main                 ] Started witness node on a chain with 0 blocks.
2560568ms th_a       main.cpp:180                  main                 ] Chain ID is 0e435e3d20d8efa4e47fae56707a460e35c034aa2b0848e760e51beb13b3db04

Code:
dhcp19:graphene phil$ cd program/cli_wallet
dhcp19:cli_wallet phil$ ./cli_wallet
Logging RPC to file: logs/rpc/rpc.log
2838642ms th_a       main.cpp:120                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2838649ms th_a       main.cpp:124                  main                 ] nathan_pub_key: GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2838650ms th_a       main.cpp:125                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 0e435e3d20d8efa4e47fae56707a460e35c034aa2b0848e760e51beb13b3db04 (from egenesis)
2838655ms th_a       main.cpp:172                  main                 ] wdata.ws_server: ws://localhost:8090
2838726ms th_a       main.cpp:177                  main                 ] wdata.ws_user:  wdata.ws_password:  
Please use the set_password method to initialize a new wallet before continuing
2838792ms th_a       thread.cpp:95                 thread               ] name:getline tid:123145506545664
new >>>

At this point, you can use the help command to explore how to use the wallet interface.

Programming with Graphene

The basic API for Graphene is based on remote procedure calls. The specific functions available depend on the terms of the contracts, defined by a particular blockchain instance. A common authentication module is accessed first through the login API. After authenticating, the client application is able to gather other remote object references and make calls to them.

The FC library is used to manage the transport details, allowing the nodes to accept a variety of transport protocols. As currently delivered, the witness_node application is configured to accept HTTP formatted requests. From a C++ application, the Graphene apps library and FC library work together to provide a simple programming model for such access.

Here is an example, taken from the cli_wallet application, showing how to connect to the node server, log in, and make additional calls.
Code:
         fc::http::websocket_client client;
          idump((wdata.ws_server));
          auto con  = client.connect( wdata.ws_server );
          auto apic = std::make_shared(*con);
    
          auto remote_api = apic->get_remote_api< login_api >(1);
          edump((wdata.ws_user)(wdata.ws_password) );
          // TODO:  Error message here
          FC_ASSERT( remote_api->login( wdata.ws_user, wdata.ws_password ) );
    
          auto wapiptr = std::make_shared( wdata, remote_api );
          wapiptr->set_wallet_filename( wallet_file.generic_string() );
          wapiptr->load_wallet_file();
    
          fc::api wapi(wapiptr);
    
          auto wallet_cli = std::make_shared();
          for( auto& name_formatter : wapiptr->get_result_formatters() )
             wallet_cli->format_result( name_formatter.first, name_formatter.second );


Without getting too deep, what is shown here is that wdata is some collection of initialization information collected from the command line, config files, etc. This is then used to create a client connection, log in (asserting that it was successful), creating an instance of the wallet API that communicates through the authenticated reference to make further calls.



Building Graphene on Ubuntu
https://github.com/bitshares/bitshares-core/wiki/BUILD_UBUNTU

Building Graphene on Windows
https://github.com/bitshares/bitshares-core/wiki/BUILD_WIN32

Nodes
https://github.com/bitshares/bitshares-core/wiki/Wallet_Full-Nodes_Witness_Nodes

API
https://github.com/bitshares/bitshares-core/wiki/API

Websocket Subscriptions
https://github.com/bitshares/bitshares-core/wiki/Websocket-Subscriptions

Wallet Cookbook
https://github.com/bitshares/bitshares-core/wiki/CLI-Wallet-Cookbook

How to set up Witness for Testnet
https://github.com/bitshares/bitshares-core/wiki/How-to-setup-your-witness-for-test-net-%28Ubuntu-14.04%29

If you are getting Error Messages while trying to do this, then read here, and if your problem is not solved here, you can post your problem and see if someone else can answer it.
https://github.com/bitshares/bitshares-core/issues

Bitsharestalk threads with helpful info
https://bitsharestalk.org/index.php?topic=22659.0
https://bitsharestalk.org/index.php/topic,18614.0.html
https://bitsharestalk.org/index.php?topic=17962.525
https://bitsharestalk.org/index.php?topic=18635.0
https://bitsharestalk.org/index.php?topic=21532.0
https://bitsharestalk.org/index.php?topic=23627.0
https://bitsharestalk.org/index.php?topic=22125.0
https://bitsharestalk.org/index.php?topic=15138.285
https://bitsharestalk.org/index.php/topic,19507.0.html
https://bitsharestalk.org/index.php/topic,18751.0.html
https://bitsharestalk.org/index.php/topic,22576.0.html

Abstract information about Graphene on Bitsharestalk
https://bitsharestalk.org/index.php?topic=21990.0
https://bitsharestalk.org/index.php?topic=25187.0
https://bitsharestalk.org/index.php?topic=18401.0
https://bitsharestalk.org/index.php/topic,21079.0.html
https://bitsharestalk.org/index.php?topic=23716.0
https://bitsharestalk.org/index.php?topic=23478.0
https://bitsharestalk.org/index.php?topic=23848.0
https://bitsharestalk.org/index.php?topic=18434.0



Fabric



Open Source Blockchains with uses
http://hyperledger.org/projects

This was the intro for HyperLedger fabric before it was created
https://www.youtube.com/watch?v=EKa5Gh9whgU

Video about how to Build Fabric
https://www.youtube.com/watch?v=Ggosz5-kjIA

HyperLedger Fabric
https://media.readthedocs.org/pdf/hyperledger-fabric/latest/hyperledger-fabric.pdf
https://hyperledger-fabric.readthedocs.io/en/release/
http://hyperledger-fabric.readthedocs.io/en/release/getting_started.html
http://hyperledger-fabric.readthedocs.io/en/release/blockchain.html
http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html
https://www.ibm.com/developerworks/cloud/library/cl-ibm-blockchain-101-quick-start-guide-for-developers-bluemix-trs/index.html
http://hyperledger-fabric.readthedocs.io/en/release/samples.html
https://github.com/CATechnologies/blockchain-tutorials/wiki/Tutorial:-Hyperledger-Fabric-v1.1-%E2%80%93-Create-a-Development-Business-Network-on-zLinux
https://chainhero.io/2017/07/tutorial-build-blockchain-app/
https://medium.com/@gaurangtorvekar/getting-started-with-hyperledger-fabric-ba7efb55b75
https://www.ibm.com/developerworks/cloud/library/cl-add-an-organization-to-your-hyperledger-fabric-blockchain/index.html
https://www.ibm.com/developerworks/library/mw-1705-auberger-bluemix/1705-auberger.html
https://linuxctl.com/2017/08/bootstrapping-hyperledger-fabric-1.0/


You can download Fabric with the Buttons at the top of the page on this link
https://www.hyperledger.org/projects/fabric

HyperLedger Live Chat
https://chat.hyperledger.org/channel/fabric

HyperLedger 7 part video series (after you watch  the first one, the others should automatically come up after each video)
https://www.youtube.com/watch?v=7EpPrSJtqZU

IBMs HyperLedger Blockchain
https://www.youtube.com/watch?v=JuXH9OYXcQQ

Here is an IBM series about HyperLedger
https://www.youtube.com/watch?v=yfpXnl6U3y8
Jump to: