Skip to content

incentivus/ABCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Different scenarios of ABCD

ABCD paper: http://sina.sharif.edu/~mtefagh/papers/ABCD.pdf

Pointers to the transactions:

Bob cheats:

(BTC) Alice FUNDING: 83550e59614ea0cfa45305f8345577a1b3c514b72ee856bd28a61564e3ae7e64 (BTC) Bob FUNDING: bc8c76ff0561d67c2c90b7966990b0aed5f1a856311f377a6cff293e83c7eea9 (BTC) Bob FUNDING 2: d9efb603daf1cf67825eacfb7ea3ae91aca1434b4bd31e9df4702640c6a79b4d (BTC) Alice MARGIN DEPOSITION: 32b57b6735500e7790cd6a483ab2d4edfb6329fdd78ba2b6f8abab41ee2d1bda (BTC) Alice GUARANTEE DEPOSITION: 2ebb9297bbcbae5c4d23abb23cfb7105bbadaedb312c0ca30c15cc923b1198e0 (BTC) Bob PREMIUM DEPOSITION: bb5534564336e3bb2f5a579f15dbd388f7c23e9cd85a1de2ef36e0cd42959d41 (BTC) Bob PRINCIPAL: 4c2ae192a0614ac039849b4458ea552d4e87532e0003a1ce6f0da13f0c1037ad (LTC) Carol HTLC: ede37f5e8d9b2addde9f37181d7306a12acb693ca3de0ba5f3f7b69e33528be6 (BTC) Alice REDEMPTION: a777d5b832a6b880eac0c50c7298d0906433b563b7b7a4211a525d714ec1c2f9 (BTC) Alice RETURN REDEMPTION BACK: eb7256513fdf142ed10bf5282726816e31a6f3980135427a42f3afced72a0f7a (BTC) Bob RETURN PRINCIPAL BACK: (BOB CHEATS) d435c10a601c279feb99d02153a58053bad254d6501cf8bcb11303a5c6d4411e (LTC) Carol RETURN HTLC BACK: bcfaa25db28186ed666a468c0d2a9b28b8571c8aa583f3f72b399ee72d959497

Alice defaults:

(BTC) Alice FUNDING: a731630c22a628f9e0cc07e2be0c34c8e4ab8d3cdc9dd3fe66232c9239192d3c (BTC) Bob FUNDING: 59f27fa5cd1e21b1c26eca910500e20439f1d9413085627386937c37dd9d90e5 (BTC) Bob FUNDING 2: dd38c1aab116a2dbe9be42ca1aa05f0ba2c0f0f57b48cda343dd48f68878e8d5 (BTC) Alice MARGIN DEPOSITION: 8d893cba96609ed9bac3aa00a6f9b60ec1db7700bcd3a420d4f80f33f7162ca1 (BTC) Alice GUARANTEE DEPOSITION: 834c9d05d402f4a5446a4224a28268c85f07b9a9a9b7b14aafbce6458b61d124 (BTC) Bob PREMIUM DEPOSITION: f5129a91a9e75b0203f2797130b5c1188cefac11ff6832e3d961e3eea143d022 (BTC) Bob PRINCIPAL: 0454346e5b900e8c287525d7d71f88c747e831b7b9a22e5c120b44637303688a (LTC) Carol HTLC: ff1747c78317a67f5f785d438549567157cfc232a4d4c209ccb738e61bb6d093 (BTC) Bob RETURN PRINCIPAL BACK (ALICE DEFAULTS): 041796d1c451d93022e4a1549bec5074dbbdbf5c7ac261432d0258167eebbbf0 (BTC) Bob WITHDRAW GUARANTEE: d76eac4119c2899273b23edc3993e4d2b67698efef750010bb11affdfeaebaeb (LTC) Carol RETURN HTLC BACK: 6e770ccc005e45a2b83ede3c519961ff0c526b5265d953a674e2c3449b53d675

All parties cooperate:

(BTC) Alice FUNDING: 3ff1b05e07821a223c26c25bba09e8fcb43e6011219ea4724d0147ffa33bd490 (BTC) Bob FUNDING: 2976c93da7bf64d9cf9de288a88527423f4f229f4d05840973f84ab5dde20289 (BTC) Bob FUNDING 2: ec00529de5c60578441d3d505a5b967341fd74c7907657ab64e829510508f917 (BTC) Alice MARGIN DEPOSITION: e995392e96dab5a21873f3a065f43580872b164e497ba5bfe825ddbf656638ee (BTC) Alice GUARANTEE DEPOSITION: f8829d64cc768843d579c48ecbf15aee1ada4d78d814394da5a49fe24b1eabc2 (BTC) Bob PREMIUM DEPOSITION: bfc89056c5d510d5928e3b5d90a357ebc4b238cb5abcb6bc6be57dd36ac7845e (BTC) Bob PRINCIPAL: b446849d20f6f49a6b18a5e308c687d30b71b20e3f647a1b3ae1bd545abd794c (LTC) Carol HTLC: d439f0d473a19ab727bf8d24fa04a8f66af59f3494dd9c6cd8efec6961f14bcb
(BTC) Alice REDEMPTION: c7bfbe7ed371dbec0e5cea8e6331ec413d9d7e8a7edf5abcc0911aa6a34c74f3
(BTC) Bob HTLC OUTPUT: 95b180d5aeac59177e358eb88ed1952167d3daf4fda7dda9085c495434e9a67c
(LTC) Alice HTLC OUTPUT: 700777a444cebc89ec2fc4b79ffde5c27631d07f6c7078e450a9be9f16f56d0d
(BTC) Carol HTLC OUTPUT: d0e09d2dd486ba55dcee81843867cec111d9cd0f929902eae3e3512397099f40