Skip to content

Commit

Permalink
Merge pull request #38 from w3c-ccg/feat/add-jwk-examples
Browse files Browse the repository at this point in the history
Add jwk examples noted in #37
  • Loading branch information
tplooker authored Sep 20, 2020
2 parents a18b3ca + 9ee9cf1 commit 90cc203
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,23 @@ <h3><dfn>Bls 12-381 G1 Public Key</dfn></h3>
</p>
<pre class="example highlight" title="base58 encoded BLS12-381 G1 Key">
{
"id": "did:example:123456789abcdefghi#keys-1",
"id": "did:example:123#key-0",
"type": "Bls12381G1Key2020",
"controller": "did:example:123456789abcdefghi",
"publicKeyBase58" : "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
"controller": "did:example:123",
"publicKeyBase58": "7cJGQwV5XyzUjJEzY5doVhv62Qqou6qW7G4eh9YbUywgyeDCobiXjN8CnQ7wpWBrGR",
}
</pre>

<pre class="example highlight" title="JWK encoded BLS12-381 G1 Key">
{
"id": "did:example:123#key-0",
"type": "Bls12381G1Key2020",
"controller": "did:example:123",
"publicKeyJwk": {
"kty": "EC",
"crv": "BLS12381_G1",
"x": "tCgCNuUYQotPEsrljWi-lIRIPpzhqsnJV1NPnE7je6glUb-FJm9IYkuv2hbHw22i"
}
}
</pre>
</section>
Expand All @@ -408,12 +421,25 @@ <h3><dfn>Bls 12-381 G2 Public Key</dfn></h3>
</p>
<pre class="example highlight" title="base58 encoded BLS12-381 G2 Key">
{
"id": "did:example:123456789abcdefghi#keys-1",
"id": "did:example:123#key-1",
"type": "Bls12381G2Key2020",
"controller": "did:example:123456789abcdefghi",
"controller": "did:example:123",
"publicKeyBase58" : "oqpWYKaZD9M1Kbe94BVXpr8WTdFBNZyKv48cziTiQUeuhm7sBhCABMyYG4kcMrseC68YTFFgyhiNeBKjzdKk9MiRWuLv5H4FFujQsQK2KTAtzU8qTBiZqBHMmnLF4PL7Ytu"
}
</pre>

<pre class="example highlight" title="JWK encoded BLS12-381 G2 Key">
{
"id": "did:example:123#key-1",
"type": "Bls12381G2Key2020",
"controller": "did:example:123",
"publicKeyJwk": {
"crv": "BLS12381_G2",
"kty": "EC",
"x": "h_rkcTKXXzRbOPr9UxSfegCbid2U_cVNXQUaKeGF7UhwrMJFP70uMH0VQ9-3-_2zDPAAjflsdeLkOXW3-ShktLxuPy8UlXSNgKNmkfb-rrj-FRwbs13pv_WsIf-eV66-"
}
}
</pre>
</section>

</section>
Expand Down

0 comments on commit 90cc203

Please sign in to comment.