File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/WalletFramework.MdocLib/Security Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace WalletFramework . MdocLib . Security ;
11
11
12
- public record SessionEstablishment ( PublicKey EReaderKey , EncryptedDeviceRequest Data ) ;
12
+ public record SessionEstablishment ( PublicKey EReaderKey , EncryptedDeviceRequest Request ) ;
13
13
14
14
public static class SessionEstablishmentFun
15
15
{
16
- public static CBORObject ToCbor ( this SessionEstablishment data )
16
+ public static CBORObject ToCbor ( this SessionEstablishment session )
17
17
{
18
18
var result = CBORObject . NewMap ( ) ;
19
19
20
20
var keyLabel = CBORObject . FromObject ( "eReaderKey" ) ;
21
- result . Add ( keyLabel , data . EReaderKey . ToCoseKey ( ) . ToCbor ( ) . ToTaggedCborByteString ( ) ) ;
21
+ result . Add ( keyLabel , session . EReaderKey . ToCoseKey ( ) . ToCbor ( ) . ToTaggedCborByteString ( ) ) ;
22
22
23
23
var dataLabel = CBORObject . FromObject ( "data" ) ;
24
- result . Add ( dataLabel , data . Data . Encrypted ) ;
24
+ result . Add ( dataLabel , session . Request . Encrypted ) ;
25
25
26
26
return result ;
27
27
}
You can’t perform that action at this time.
0 commit comments