Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jwk examples noted in #37 #38

Merged
merged 2 commits into from
Sep 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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