Skip to content

Commit

Permalink
clarity on identity key
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed May 14, 2024
1 parent d375e5e commit 497f60b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion impl/internal/did/pow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func TestPOW(t *testing.T) {
// Example usage of solveRetentionChallenge
didIdentifier := "did:dht:test"
inputHash := "000000000000000000022be0c55caae4152d023dd57e8d63dc1a55c1f6de46e7"
inputHash := "123bcdefghobc23567822be0c55caae4152d023dd57e8d63dc1a55c1f6de46e7"

// 26 leading zeros
difficulty := 26
Expand Down
9 changes: 6 additions & 3 deletions spec/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,13 @@ To create a `did:dht` document, the process is as follows:
2. Construct a conformant JSON representation of a [[ref:DID Document]].

a. The document ****MUST**** include a [Verification Method](https://www.w3.org/TR/did-core/#verification-methods) with
the [[ref:Identity Key]] encoded as a `publicKeyJwk` as per [[spec:RFC7517]] with an `id` of `0` and `type` of
`JsonWebKey` defined by [[ref:VC-JOSE-COSE]].
the [[ref:Identity Key]]. The `id` property of this Verification Method ****MUST**** be `0` and type of `JsonWebKey` as defined
by [[ref:VC-JOSE-COSE]]. The key ****MUST**** be represented as a `publicKeyJwk` as per [[spec:RFC7517]] with a `kid` of `0`.

b. The document can include any number of other [core properties](https://www.w3.org/TR/did-core/#core-properties);
b. The [[ref:Identity Key]] ****MUST**** have the [Verification Relationships](#verification-relationships)
_Authentication_, _Assertion_, _Capability Invocation_, and _Capability Delegation_.

c. The document can include any number of other [core properties](https://www.w3.org/TR/did-core/#core-properties);
always representing key material as a `JWK` as per [[spec:RFC7517]]. In addition to the properties required by
the `JWK` specification, the `alg` property ****MUST**** always be present. Default algorithms are defined per key
type in the [indexed types registry](registry/index.html#indexed-types).
Expand Down

0 comments on commit 497f60b

Please sign in to comment.