Skip to content

Commit

Permalink
Change DigitalCredential.data's type to 'any' (#107)
Browse files Browse the repository at this point in the history
* Change DigitalCredential.data's type to 'any'

* Update index.html
  • Loading branch information
marcoscaceres committed Apr 26, 2024
1 parent 9fe77d3 commit a7b4400
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h2>
[Exposed=Window, SecureContext]
interface DigitalCredential : Credential {
readonly attribute DOMString protocol;
[SameObject] readonly attribute Uint8Array data;
readonly attribute any data;
};
</pre>
<h3>
Expand All @@ -251,9 +251,22 @@ <h3>
<h3>
The `data` member
</h3>
<aside class="issue" title="Why the 'any' data type?">
<p>
We are currently exploring the use of a more structured data type for
the `data` attribute as we attempt to understand the requirements of
various digital credential formats and protocols. <strong>We expect
this data type to change in the very near future.</strong>
</p>
<p>
We are also investigating how [[[webauthn]]] deals with this. See
<a href="https://github.com/WICG/digital-identities/issues/95">issue
#95</a>.
</p>
</aside>
<p>
The <dfn data-dfn-for="DigitalCredential">data</dfn> member is the
credential's encrypted data.
credential's response data.
</p>
<h2 id="protocol-registry">
Registry of protocols for requesting digital credential
Expand Down

0 comments on commit a7b4400

Please sign in to comment.