The Difficulties And Countermeasures Of DAPP On Block Chain Liu Yuan (Lynch) 2018-12-8
The Difficulties Consensus---Delay Block---Throughput
The Countermeasures Consensus---Improvement Block---Increase Protocol---optimize On-chain Credit endorsement on-chain Instant payment off-chain Automatically adjudicated on-chain State Channel
Key Technology of State Channel Multisignature RSMC(Recoverable Sequence Maturity Contract) HTLC(Hashed Time lock Contract)
Multisignature (A’) (B’) (A’) 10 Transaction From A to B Transaction From AB to C (B) 10 (C) 10
RSMC (A’) 10 (B’) 10 Funding (A,B’) 20 (A’,B) 20 X C1a #1 #0 C1b #0 #1 #1 #0 C1b #0 #1 (A1,B’) 10 (B) 10 (A’,B1) 10 (A) 10 RD1a Seq = 1000 RD1b Seq = 1000 (A) 10 (B) 10
RSMC (A’) 10 (B’) 10 Funding (A,B’) 20 (A’,B) 20 X C2a #1 #0 C2b #0 #1 #1 #0 C2b #0 #1 (A2,B’) 5 (B) 15 (A’,B2) 15 (A) 5 RD2a Seq = 1000 RD2b Seq = 1000 (A) 5 (B) 15
RSMC (A’) 10 (B’) 10 Funding (A,B’) 20 (A’,B) 20 X (B) 10 C1a #1 #0 #1 #0 C1b #0 #1 (A) 10 (A1’,B) 10 (A1,B’) 10 (A’,B1) 10 (A,B1’) 10 X X BR1a RD1a Seq = 1000 RD1b Seq = 1000 BR1b (B) 10 (B) 10 (A) 10 (A) 10
HTLC A B C D Step 7 Step 6 R + 5 R + 4 Step 5 R + 3 Step 1 R------》H(R) H(R)+3 Step 2 H(R)+ 5 Step 3 H(R)+ 4 Step 4 H(R)+ 3
HTLC (A’) 10 (B’) 10 Funding (A,B’) 20 (A’,B) 20 X C1a #1 #0 C1b #0 #1 #1 #0 C1b #0 #1 (A1,B’) 10 (B) 10 (A’,B1) 10 (A) 10 RD1a Seq = 1000 RD1b Seq = 1000 (A) 10 (B) 10
HTLC (A’) 10 (B’) 10 Funding (A,B’) 20 (A’,B) 20 X C2a #1 #0 #2 C2b #1 #0 #2 C2b #0 #1 (A) 5 (B) 10 (A’,B2) 10 (A2,B’) 5 (HTLC) 5 (HTLC) 5 RD2b Seq = 1000 RD2a Seq = 1000 X (A’,B3,R) 5 X (A,B3’) 5 (A3’,B,R) 5 (A3,B’) 5 (A) 5 (B) 10 HED1a H(R) HT1a >3 days HE1b H(R) HTD1b >3 days (B) 5 (A) 5 (B) 5 (A) 5
Architecture Data Base Message Management SPV manager N S M CLI Transaction Monitor Channel Router CSAM CLM Transaction Management RSMC HTLC MS Channel Management AM Block Chain Service
Architecture DAPP 4 3 2 1 Channel service Layer Channel Router Layer State Channel Layer Channel Router Layer r Channel service Layer DAPP Block Chain Layer 1 2 3 4
D-Application Painter Sharer Learner Collector 。。。 Resource Provider Account Management System Users Reward Painting Trading System Reward ColorBay Settling Engine State Channel Engine (Trinity Network Service)
The phase of State Channel Payment Special General Across
A UNIVERSAL OFF-CHAIN SCALING SOLUTION