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 Better CDDL for Disclosures #5

Open
OR13 opened this issue May 30, 2024 · 1 comment
Open

Add Better CDDL for Disclosures #5

OR13 opened this issue May 30, 2024 · 1 comment

Comments

@OR13
Copy link
Contributor

OR13 commented May 30, 2024

SD-Capable-Claim-Value = Array-Value / Map-Value / Scalar-Value
Array-Value = [
  *(Redacted-Element / any)
]
Map-Value = {
  ? blinded-hash-claim, ; only one blinded-hash-claim allowed per Map-Value
  * CWT-Claim ; (may be freely interleaved with other CWT-Claims)
}
blinded-hash-claim = "_sd": [ * blinded-hash ]
Redacted-Element = { "..." : blinded-hash }
blinded-hash = bstr
Scalar-Value = #0 / #1 / #2 / #3 / #6 / #7

From #3 (comment)

@OR13 OR13 mentioned this issue May 30, 2024
@OR13
Copy link
Contributor Author

OR13 commented May 30, 2024

And

salted = salted-claim / salted-element
salted-claim = [
  bstr .size 16, ; 128-bit salt
  (int / text),   ; claim name
  any         ; claim value
]
salted-element = [
  bstr .size 16, ; 128-bit salt
  any         ; claim value
]

From: #3 (comment)

@OR13 OR13 mentioned this issue Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant