attestation_process.json
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: bafyreievxf7iejjbqgex47qbuwn7hv3xgtbyngekxzsnn4qvtavwrtnfje", 24 { 25 "$type": "com.eli.money.affirmation", 26 "cid": "bafyreievxf7iejjbqgex47qbuwn7hv3xgtbyngekxzsnn4qvtavwrtnfje" 27 }, 28 "The record CID for the above record is bafyreig26y5doznxefnbzccwocrwabcjcgxlm7i6tk3ykd6jq4yng4yr6e 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": "bafyreig26y5doznxefnbzccwocrwabcjcgxlm7i6tk3ykd6jq4yng4yr6e" 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": "bafyreig26y5doznxefnbzccwocrwabcjcgxlm7i6tk3ykd6jq4yng4yr6e" 46 } 47 ] 48 } 49]