We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405792b commit 1878e76Copy full SHA for 1878e76
src/WalletFramework.MdocLib/Security/SessionTranscript.cs
@@ -11,7 +11,7 @@ namespace WalletFramework.MdocLib.Security;
11
public record SessionTranscript(
12
Option<DeviceEngagement> DeviceEngagement,
13
Option<PublicKey> ReaderKey,
14
- IHandover Handover);
+ Option<IHandover> Handover);
15
16
public static class SessionTranscriptFun
17
{
@@ -45,9 +45,12 @@ public static CBORObject ToCbor(this SessionTranscript sessionTranscript)
45
result.Add(CBORObject.Null);
46
}
47
);
48
-
49
- result.Add(sessionTranscript.Handover.ToCbor());
50
+ sessionTranscript.Handover.Match(
+ handover => { result.Add(handover.ToCbor()); },
51
+ () => { result.Add(CBORObject.Null); }
52
+ );
53
+
54
return result;
55
56
0 commit comments