Introducing the Bitmark and Hyperledger project, how they facilitate the blockchain technology for the digital assets and property world, and learn the Chaincode 101.
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Bitmark and Hyperledger Workshop: the Digital Assets and Property
1. Bitmark and Hyperledger Workshop
The Digital Assets and Property
Jollen
2017.03.21 @Taipei
<jollen@bitmark.com>
Bitmark Inc.
https://bitmark.com
https://github.com/bitmark-inc
8. Prerequisite
• Digital Assets
• Aka the “web 3.0”
• Digital property and the “Internet of Trust”
• Chaincode
• Aka the “code on the blockchain”
• Node.js
• Use the “hfc@0.6.5” module
8
9. Assets
• Range from the tangible (real estate and hardware)
to the intangible (contracts and intellectual property)
• How to define Assets
• Bitmark Desktop
• Fabric Composer
• etc
9
11. Exchange Assets
• The “transaction”
• Using unspent transaction outputs as the inputs for
subsequent transactions
• Fabric allows for any asset to be represented in
binary or JSON format.
• Assets live in Fabric as a collection of key-value
pairs (KVP)
11
13. • The transaction flow consists of a transaction
proposal sent by an application client to specific
endorsing peers
• The peer executes a chaincode function to simulate
the transaction
• The proposal response gets sent back to the client
along with an endorsement signature
Chaincode and Transaction
13
14. Register and Enroll
Source: https://hyperledger-fabric.readthedocs.io/en/latest/txflow.html
1. Register and enroll with the organization’s certificate
authority (CA)
2. Install chaincode on the peers and instantiate on the
channel
14
16. 智能合約撰寫
• The chaincode contains logic defining a set of
transaction instructions
• Agree upon price for an asset
• An endorsement policy to state that both peerA and
peerB must endorse any transaction
16
17. Chaincode and Ledger
• Chaincode functions execute against the ledger
current state database and are initiated through a
transaction proposal
• Each transaction results in a set of asset key-value
pairs that are committed to the ledger as creates,
updates, or deletes
17