Skip to content

Conversation

@rmccue
Copy link
Member

@rmccue rmccue commented Sep 12, 2025

Introduces an "export" button on DIDs, which gives a JSON document that can be reimported. This document contains the private keys stored in the database (in multibase multikey encoded format).

Fixes #7. This is based off the #14 PR, so that needs to be merged before this is - I can rebase afterwards.

Example export, did-abc123def456abc123def456.json:

{
    "@context": "https:\/\/fair.pm\/did-export",
    "_warning": "WARNING: This file contains your private keys for your DID. Do not share it publicly, as it will lead to your DID being PERMANENTLY COMPROMISED and UNRECOVERABLE.",
    "id": "did:plc:abc123def456abc123def456",
    "rotation": [
        "z6Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    ],
    "verification": [
        "z6Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "z2bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "zruxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    ]
}

rmccue added 26 commits June 13, 2025 01:56
Signed-off-by: Ryan McCue <[email protected]>
Signed-off-by: Ryan McCue <[email protected]>
Signed-off-by: Ryan McCue <[email protected]>
Signed-off-by: Ryan McCue <[email protected]>
Retains the decoding ability for prior badly-encoded keys.

Signed-off-by: Ryan McCue <[email protected]>
Signed-off-by: Ryan McCue <[email protected]>
These are a list, rather than a map with significant indexes.

Signed-off-by: Ryan McCue <[email protected]>
Base automatically changed from use-ed25519-for-signing to main September 21, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants