From 1c2d87b729cd68be1030fa36a7597aa3fa93ec94 Mon Sep 17 00:00:00 2001 From: silverpill Date: Thu, 28 Apr 2022 16:19:59 +0000 Subject: [PATCH] Add info about identity proofs to FEDERATION.md --- FEDERATION.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/FEDERATION.md b/FEDERATION.md index 432f876..ea7484b 100644 --- a/FEDERATION.md +++ b/FEDERATION.md @@ -1,6 +1,6 @@ # ActivityPub federation in Mitra -Mitra largely follows the [ActivityPub](https://www.w3.org/TR/activitypub/) server-to-server specification but it makes uses of some non-standard extensions, some of which are required for interacting with it at all. +Mitra largely follows the [ActivityPub](https://www.w3.org/TR/activitypub/) server-to-server specification but it makes uses of some non-standard extensions, some of which are required for interacting with it. The following activities are supported: @@ -22,3 +22,31 @@ And these additional standards: - [NodeInfo](https://nodeinfo.diaspora.software/) - [WebFinger](https://webfinger.net/) +Activities are implemented in way that is compatible with Pleroma, Mastodon and other popular ActivityPub servers. + +## Profile extensions + +### Cryptocurrency addresses + +Cryptocurrency addresses are represented as `PropertyValue` attachments where `name` attribute is a currency symbol prefixed with `$`: + +```json +{ + "name": "$XMR", + "type": "PropertyValue", + "value": "8Ahza5RM4JQgtdqvpcF1U628NN5Q87eryXQad3Fy581YWTZU8o3EMbtScuioQZSkyNNEEE1Lkj2cSbG4VnVYCW5L1N4os5p" +} +``` + +### Identity proofs + +Identity proofs are represented as attachments of `IdentityProof` type: + +```json +{ + "name": "", + "type": "IdentityProof", + "signatureAlgorithm": "", + "signatureValue": "" +} +```