attestation_process.json edited
49 lines 1.9 kB view raw
1[ 2 "did:plc:bailey pays did:plc:dame $100 for the vip-treatment", 3 "did:plc:bailey has a record that declares so", 4 { 5 "$type": "com.eli.money.payment", 6 "txnid": "uniquetransaction1", 7 "to": "did:plc:dame", 8 "entitlement": "vip-treatment", 9 "ammount": 100 10 }, 11 "did:plc:dame will house a proof record that will contain a special content CID", 12 { 13 "$type": "com.eli.money.payment", 14 "txnid": "uniquetransaction1", 15 "to": "did:plc:nick", 16 "entitlement": "vip-treatment", 17 "ammount": 100, 18 "$sig": { 19 "$type": "com.eli.money.affirmation", 20 "repository": "did:plc:bailey" 21 } 22 }, 23 "The above record would produce this content CID: bafyreidbpeekc5aff73vonhba6floce5r3lmhizswpygvel4nw5r2cqg34", 24 { 25 "$type": "com.eli.money.affirmation", 26 "cid": "bafyreidbpeekc5aff73vonhba6floce5r3lmhizswpygvel4nw5r2cqg34" 27 }, 28 "The record CID for the above record is bafyreidhy7kic45rmflz43cr7547r57rf6n4wrsz4f7bdhgu73xv2jhase and would produce the following strongRef", 29 { 30 "$type": "com.atproto.repo.strongRef", 31 "uri": "at://did:plc:dame/com.eli.money.affirmation/some_rkey", 32 "cid": "bafyreidhy7kic45rmflz43cr7547r57rf6n4wrsz4f7bdhgu73xv2jhase" 33 }, 34 "That remote attestation is added to the original record that is stored in did:plc:bailey's PDS", 35 { 36 "$type": "com.eli.money.payment", 37 "txnid": "uniquetransaction1", 38 "to": "did:plc:dame", 39 "entitlement": "vip-treatment", 40 "ammount": 100, 41 "signatures": [ 42 { 43 "$type": "com.atproto.repo.strongRef", 44 "uri": "at://did:plc:dame/com.eli.money.affirmation/some_rkey", 45 "cid": "bafyreidhy7kic45rmflz43cr7547r57rf6n4wrsz4f7bdhgu73xv2jhase" 46 } 47 ] 48 } 49]