Skip to content

Commit a19f2a5

Browse files
committed
chore: extract SessionKey model
1 parent 1aabaee commit a19f2a5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

EccSDK/SessionKeyGenerator.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
using EccSDK.models;
12
using Org.BouncyCastle.Math;
23

34
namespace EccSDK;
45

56
public class SessionKeyGenerator
67
{
7-
public static BigInteger GenerateSessionKey()
8+
public static SessionKey GenerateSessionKey()
89
{
9-
return new BigInteger(256, new Random());
10+
return new SessionKey()
11+
{
12+
Key = new BigInteger(256, new Random())
13+
};
1014
}
1115
}

EccSDK/models/SessionKey.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using Org.BouncyCastle.Math;
2+
3+
namespace EccSDK.models;
4+
5+
public class SessionKey
6+
{
7+
public BigInteger Key { get; set; }
8+
}

0 commit comments

Comments
 (0)