From b349935f6f4b51706fdf39de7c9feca73ee76e02 Mon Sep 17 00:00:00 2001 From: "Charles E. Lehner" Date: Tue, 30 Nov 2021 10:19:14 -0500 Subject: [PATCH] Add did:pkh:aleo --- did-pkh-method-draft.md | 2 ++ ...g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x.jsonld | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 test-vectors/did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x.jsonld diff --git a/did-pkh-method-draft.md b/did-pkh-method-draft.md index bdedbab..ccd7ebc 100644 --- a/did-pkh-method-draft.md +++ b/did-pkh-method-draft.md @@ -95,6 +95,7 @@ JSON-LD DID document derived from each: | tz (tz1) | [did:pkh:tezos:NetXdQprcVkpaWU:tz1TzrmTBSuiVHV2VfMnGRMYvTEPCP42oSM8](https://github.com/w3c-ccg/did-pkh/blob/main/test-vectors/did:pkh:tezos:NetXdQprcVkpaWU:tz1TzrmTBSuiVHV2VfMnGRMYvTEPCP42oSM8.jsonld) | | tz (tz2) | [did:pkh:tezos:NetXdQprcVkpaWU:tz2BFTyPeYRzxd5aiBchbXN3WCZhx7BqbMBq](https://github.com/w3c-ccg/did-pkh/blob/main/test-vectors/did:pkh:tezos:NetXdQprcVkpaWU:tz2BFTyPeYRzxd5aiBchbXN3WCZhx7BqbMBq.jsonld) | | tz (tz3) | [did:pkh:tezos:NetXdQprcVkpaWU:tz3agP9LGe2cXmKQyYn6T68BHKjjktDbbSWX](https://github.com/w3c-ccg/did-pkh/blob/main/test-vectors/did:pkh:tezos:NetXdQprcVkpaWU:tz3agP9LGe2cXmKQyYn6T68BHKjjktDbbSWX.jsonld) | +| aleo | [did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x](https://github.com/w3c-ccg/did-pkh/blob/main/test-vectors/did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x.jsonld) | As you can see, the did:pkh address simply consists of a prefix to identify the namespace on which the address is valid (and could be published, but isn't @@ -120,6 +121,7 @@ enough to identify keytype, which must be detected from the address itself. |solana|`solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ`|Ed25519VerificationKey2018|https://w3id.org/security#Ed25519VerificationKey2018| |bitcoin mainnet|`bip122:000000000019d6689c085ae165831e93`|EcdsaSecp256k1RecoveryMethod2020|https://identity.foundation/EcdsaSecp256k1RecoverySignature2020#EcdsaSecp256k1RecoveryMethod2020| |dogecoin mainnet|`bip122:1a91e3dace36e2be3bf030a65679fe82`|EcdsaSecp256k1RecoveryMethod2020|https://identity.foundation/EcdsaSecp256k1RecoverySignature2020#EcdsaSecp256k1RecoveryMethod2020| +|Aleo Testnet I|`aleo:1`|BlockchainVerificationMethod2021|https://w3id.org/security#BlockchainVerificationMethod2021| ### Context diff --git a/test-vectors/did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x.jsonld b/test-vectors/did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x.jsonld new file mode 100644 index 0000000..904b600 --- /dev/null +++ b/test-vectors/did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x.jsonld @@ -0,0 +1,21 @@ +{ + "@context": [ + "https://www.w3.org/ns/did/v1", + "https://w3id.org/security/suites/blockchain-2021/v1" + ], + "id": "did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x", + "verificationMethod": [ + { + "id": "did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x#blockchainAccountId", + "type": "BlockchainVerificationMethod2021", + "controller": "did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x", + "blockchainAccountId": "aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x" + } + ], + "authentication": [ + "did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x#blockchainAccountId" + ], + "assertionMethod": [ + "did:pkh:aleo:1:aleo1al8unplh8vtsuwna0h6u2t6g0hvr7t0tnfkem2we5gj7t70aeuxsce9m4x#blockchainAccountId" + ] +} \ No newline at end of file