# FEP-c390: Identity Proofs

**URL:** <https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726>\
**Category:** Fediverse Enhancement Proposals\
**Tags:** draft, fep, fep-c390\
**Created:** [November 28, 2022, 5:24pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726 "2022-11-28T17:24:31Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![weex](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/weex/32/1434_2.png) [@weex](https://socialhub.activitypub.rocks/u/weex)\
**Post date:** [March 30, 2023, 6:43pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/41 "2023-03-30T18:43:57Z")

</div>

> [@helge](#):
>
> What do you mean by “redundant”?

Just in the system reliability sense, one url can be a single point of failure so I wondered if having another makes any sense and it seems not to.

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [March 30, 2023, 9:21pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/42 "2023-03-30T21:21:28Z")

</div>

`@context` is the kind of thing where having it resolve is merely a convenience. the only time it matters is if it is referenced for inclusion and you don’t already have a cached copy of it. in such a case, being able to resolve it directly means you don’t have to go track it down and download it from elsewhere.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [April 1, 2023, 9:01pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/43 "2023-04-01T21:01:22Z")

</div>

FEP-c390 has been updated:

> **[FEP-c390: Change property names](https://codeberg.org/fediverse/fep/pulls/72)**
>
> \- Renamed "id" to "subject"
> \- Renamed "Identity" to "VerifiableIdentityStatement"
> \- Changed FEP context in the example
> \- Added potential applications

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [April 25, 2023, 11:50am UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/44 "2023-04-25T11:50:13Z")

</div>

I did an example via my vc-di-eddsa implementation: [vc-di-eddsa-python/test\_fep\_c390.py at main - vc-di-eddsa-python - Codeberg.org](https://codeberg.org/helge/vc-di-eddsa-python/src/branch/main/test_fep_c390.py)

I think the definition of `json-eddsa-2022` might still be a bit off, see [Is Example 15 / 16 correct? · Issue #38 · w3c/vc-di-eddsa · GitHub](https://github.com/w3c/vc-di-eddsa/issues/38#issuecomment-1521654364)

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [May 8, 2023, 5:49pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/45 "2023-05-08T17:49:05Z")

</div>

I was just clicking through the [json-ld playground](https://json-ld.org/playground/) and stumbled onto

> **[CHAPI is the Credential Handler API](https://chapi.io/)**
>
> an open-source solution for communicating Verifiable Credentials on the Web

Not sure what I think yet, just thought I’ll share it. It seems to be from the W3C Verified Credentials Working Group. It doesn’t look updated to vc-eddsa yet.

---

<div class="post-metadata">

**Author:** ![codenamedmitri](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/codenamedmitri/32/564_2.png) [@codenamedmitri](https://socialhub.activitypub.rocks/u/codenamedmitri)\
**Post date:** [May 8, 2023, 6:01pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/46 "2023-05-08T18:01:10Z")

</div>

Yeah, definitely take a look at it! (And let me know if you have any questions - I did a lot of work on CHAPI).

Re vc-eddsa – so CHAPI itself is just a “dumb pipe”, so if you ask for an eddsa type credential, a wallet that supports it can provide it.

---

<div class="post-metadata">

**Author:** ![melvincarvalho](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/melvincarvalho/32/1299_2.png) [@melvincarvalho](https://socialhub.activitypub.rocks/u/melvincarvalho)\
**Post date:** [May 8, 2023, 8:08pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/47 "2023-05-08T20:08:05Z")

</div>

I’ve noticed several issues with Verifiable Credentials currently and have raised two concerns in the repository today.

In ActivityPub, we have a non-normative vocabulary and a normative context, while today’s discussion in the VC group mentioned a non-normative context and a normative vocabulary.

It is crucial to adhere to established standards unless there is a valid reason to deviate. Straying from these standards in the past seven years has led to problems within the Fediverse.

I suggest that we follow the standards and only diverge from them when we can justify the deviation with specific needs. Unfortunately, in the past, decisions were sometimes made by those not well-versed in the issues, resulting in unnecessary overhead without reaping the benefits.

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [May 10, 2023, 7:47am UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/48 "2023-05-10T07:47:33Z")

</div>

> [@melvincarvalho](#):
>
> I’ve noticed several issues with Verifiable Credentials currently and have raised two concerns in the repository today.

Good. I think mine and @silverpill’s attitude is currently “tracking”. The relevant (to the Fediverse) specifications are not done, but they are getting there.

Second, the editors are responsive 👍 So it’s worthwhile to invest time to see if any issues are to be expected when using the specs for the Fediverse.

> [@melvincarvalho](#):
>
> It is crucial to adhere to established standards unless there is a valid reason to deviate. Straying from these standards in the past seven years has led to problems within the Fediverse.

One should also note here that standards coming with test cases and test suites are much easier to adhere to than standards without. The current problem is there are no incentives to make the Fediverse testable.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 18, 2023, 1:16pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/49 "2023-06-18T13:16:58Z")

</div>

I made several corrections to FEP-c390: [feps/fep-c390.md at main - feps - Codeberg.org](https://codeberg.org/silverpill/feps/src/branch/main/c390/fep-c390.md) ([diff](https://codeberg.org/silverpill/feps/commit/774309d578a38e41d45c755b6a0cde25750afe49)).

Also, I finished my implementation of this proposal. The next step is improving usability and security of account migration process based on FEP-c390. It would be also interesting to experiment with client-side activity signing (AP C2S + FEP-8b32 + FEP-c390).

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [June 19, 2023, 6:34am UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/50 "2023-06-19T06:34:10Z")

</div>

I’ll have a suggestion regarding the content of the @context property, hopefully sometime in the next few days.

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [June 20, 2023, 7:52pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/51 "2023-06-20T19:52:12Z")

</div>

First, regarding the example in FEP-c390. You should probably update the proof to use `DataIntegrity`, e.g.

```json
{
  "@context": [
    "https://raw.codeberg.page/helge/fediverse-vocabulary/output/vocabulary.json",
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/data-integrity/v1"
  ],
  "id": "https://example.com/users/alice",
  "type": "Person",
  "inbox": "https://example.com/users/alice/inbox",
  "attachment": {
    "type": "VerifiableIdentityStatement",
    "subject": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
    "proof": {
      "type": "DataIntegrityProof",
      "created": "2022-11-12T00:00:00Z",
      "cryptosuite": "jcs-rsa-2022",
      "proofPurpose": "assertionMethod",
      "proofValue": "...",
      "verificationMethod": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK"
    },
    "alsoKnownAs": "https://example.com/users/alice"
  }
}

```

Two additional comments:

- verificationMethod is now the did. Does this align with your intentions with FEP-8b32? This seems to be what you are doing on mitra.social.
- I would suggest the definition:

```json
            "subject": {
                "@id": "fep:subject",
                "@type": "xsd:anyURI"
            }

```

for subject. This has the advantage of not allowing subject to be a set.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 20, 2023, 8:36pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/52 "2023-06-20T20:36:28Z")

</div>

> [@helge](#):
>
> You should probably update the proof to use `DataIntegrity`, e.g.

The latest draft has `DataIntegrityProof` in the example: [feps/c390/fep-c390.md at main - silverpill/feps - Codeberg.org](https://codeberg.org/silverpill/feps/src/branch/main/c390/fep-c390.md). I haven’t submitted it to the FEP repo yet.

> [@helge](#):
>
> verificationMethod is now the did. Does this align with your intentions with FEP-8b32? This seems to be what you are doing on mitra.social.

Yes, “Proof generation” section of FEP-8b32 contains this sentence:

> The value of `verificationMethod` attribute SHOULD be an URL of actor’s public key or a DID associated with an actor.

This means users can sign objects with their own keys. There’s no reference to FEP-c390 because there might be other ways to associate DID with an actor (even actor ID could be a DID).

> [@helge](#):
>
> I would suggest the definition:

Sounds good. I’ll create a context file for this FEP.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 20, 2023, 10:21pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/53 "2023-06-20T22:21:18Z")

</div>

Added context: [feps/context.jsonld at main - feps - Codeberg.org](https://codeberg.org/silverpill/feps/src/branch/main/c390/context.jsonld)

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [June 27, 2023, 5:07pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/54 "2023-06-27T17:07:22Z")

</div>

I’ve just learnt in [this github issue](https://github.com/w3c/vc-di-eddsa/issues/38#issuecomment-1609483857) that the name jcs-eddsa-2022 is not fixed. Given the result of my non scientific poll on matrix that about half people don’t know what jcs is, I think that `json-eddsa-2022` will actually be the clearer name.

Opinions?

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 27, 2023, 6:29pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/55 "2023-06-27T18:29:34Z")

</div>

I would prefer a more descriptive name. And if people don’t know about JCS, that’s one more reason to use `jcs-` prefix because this algorithm needs promotion. As far as I know, there are still no implementations in Ruby, Elixir, C and PHP, so Mastodon, Pleroma and Pixelfed probably won’t support FEP-8b32 or FEP-c390 for a long time.

---

<div class="post-metadata">

**Author:** ![bumblefudge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/bumblefudge/32/1970_2.png) [@bumblefudge](https://socialhub.activitypub.rocks/u/bumblefudge)\
**Post date:** [June 28, 2023, 3:19pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/56 "2023-06-28T15:19:53Z")

</div>

> [@silverpill](#):
>
> on. As far as I know, there are still no implementations in Ruby, Elixir, C and PHP, so Mastodon, Pleroma and Pixelfed probably won’t support FEP-8b32 or FEP-c390 fo

> [@silverpill](#):
>
> As far as I know, there are still no implementations in Ruby, Elixir, C and PHP, so Mastodon, Pleroma and Pixelfed probably won’t support FEP-8b32 or FEP-c390 for a long time.

Well, RUBY might be OK thanks to Gregg from the JSON-LD group but I think the rest of this list is still out of luck:

- [GitHub - dryruby/json-canonicalization: An implementation of the JSON Canonicalization Scheme for Ruby](https://github.com/dryruby/json-canonicalization)
- [json-canonicalization | RubyGems.org | your community gem host](https://rubygems.org/gems/json-canonicalization)

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 28, 2023, 5:42pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/57 "2023-06-28T17:42:49Z")

</div>

Oh, nice. Mastodon already supports Linked Data signatures, and they might consider adopting FEP-8b32 now.

---

<div class="post-metadata">

**Author:** ![pzingg](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/p/e9bcb4/32.png) [@pzingg](https://socialhub.activitypub.rocks/u/pzingg)\
**Post date:** [July 8, 2023, 12:03am UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/58 "2023-07-08T00:03:38Z")

</div>

I am writing Elixir code that uses the JSON Canonical Scheme and the (maybe experimental) jcs-eddsa-2022 cryptosuite to support this FEP. Here is what I am assuming or need clarification on:

1. The proof document and proof configuration are built only on the single JSON sub-object in the attachment property values that has the “VerifiableIdentityStatement” type.

2. Before canonicalization, I add the top-level “@context” to the VerifiableIdentityStatement sub-object (without which it might not be a valid JSON-LD object).

Are these correct assumptions? My code is trying to respect the [W3C Verifiable Credential Data Integrity 1.0 algorithms](https://www.w3.org/TR/vc-data-integrity/)

> **[GitHub - pzingg/integrity\_proofs: Some functions to implement Verifiable...](https://github.com/pzingg/integrity_proofs)**
>
> Some functions to implement Verifiable Credential Data Integrity 1.0 using ED25519 and JCS - GitHub - pzingg/integrity\_proofs: Some functions to implement Verifiable Credential Data Integrity 1.0 u...

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [July 8, 2023, 11:48am UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/59 "2023-07-08T11:48:29Z")

</div>

> [@pzingg](#):
>
> The proof document and proof configuration are built only on the single JSON sub-object in the attachment property values that has the “VerifiableIdentityStatement” type.

Yes, the identity proof object is self-contained. Clients should be able to verify it without relying on the server.

> [@pzingg](#):
>
> Before canonicalization, I add the top-level “@context” to the VerifiableIdentityStatement sub-object (without which it might not be a valid JSON-LD object).

I think if you do JCS transformation, this is not needed. But I could be wrong.

---

<div class="post-metadata">

**Author:** ![codenamedmitri](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/codenamedmitri/32/564_2.png) [@codenamedmitri](https://socialhub.activitypub.rocks/u/codenamedmitri)\
**Post date:** [July 11, 2023, 10:39pm UTC](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726/60 "2023-07-11T22:39:57Z")

</div>

~~I think adding the `@context` is needed, even with JCS.~~ (see below)

[Previous page](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726.md?page=2)

[Next page](https://socialhub.activitypub.rocks/t/fep-c390-identity-proofs/2726.md?page=4)
