-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* introduce batch issuance Signed-off-by: kenkosmowski <[email protected]> * process credential response with multiple credentials Signed-off-by: kenkosmowski <[email protected]> --------- Signed-off-by: kenkosmowski <[email protected]>
- Loading branch information
1 parent
68a2657
commit 5560133
Showing
10 changed files
with
383 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/WalletFramework.Oid4Vc/Oid4Vci/CredRequest/Models/ProofsOfPossession.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
|
||
namespace WalletFramework.Oid4Vc.Oid4Vci.CredRequest.Models; | ||
|
||
/// <summary> | ||
/// Represents one or more proof of possessions of the key material that the issued credential is bound to. | ||
/// This contains the jwts that acts as the proof of possessions. | ||
/// </summary> | ||
public record ProofsOfPossession(string ProofType, string[] Jwt); | ||
|
||
public static class ProofsOfPossessionFun | ||
{ | ||
public static JObject EncodeToJson(this ProofsOfPossession proofsOfPossession) | ||
{ | ||
return new JObject | ||
{ | ||
[proofsOfPossession.ProofType] = JArray.FromObject(proofsOfPossession.Jwt) | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.