Skip to content

Commit

Permalink
Added User Relations draft
Browse files Browse the repository at this point in the history
  • Loading branch information
redsolver committed Jan 28, 2021
1 parent 8123780 commit c96d739
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion user-relations/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# User Relations
# User Relations

```json
{
"$schema": "sia://skystandards.hns/v1/userRelations.schema.json", // Type definition with spec version number (1)
"userId":"d448f1562c20dbafa42badd9f88560cd1adb2f177b30f0aa048cb243e55d37bd", // This is the global userId used by SkyID, not the app-specific public key (To ensure interoperability with other skapps)
"relationType": "following", // one of ["following","followers","blocked"]
"relations": { // global SkyID userId of users in relation to this user
"54ee119b9bce2790c7a3baed1ddf968a32bab4d7710270acf85f28a9dac0e66a":{
"ts": 1606169889148 // OPTIONAL, unix timestamp in milliseconds when this relation was created
},
"202f98e8a7baaa82b7003c716a1f76d07e8dacde5086197541a77c8ab1050015":{},
"86939f3af93113fb5f11056828f7019e875a07190f5c4b07e90593f5d9929965":{},
"d873ca08a7ffe36a8b19fa5d82cb34cfad70d2f0b3d5b1f2448a2054703e36d4":{}
}
}
```

0 comments on commit c96d739

Please sign in to comment.