This repository was archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathWalletFile.cs
More file actions
57 lines (52 loc) · 1.51 KB
/
WalletFile.cs
File metadata and controls
57 lines (52 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using SubstrateNetApi.Model.Types;
namespace SubstrateNetWallet
{
/// <summary>
/// Wallet File description.
/// </summary>
public class WalletFile
{
/// <summary>
/// Initializes a new instance of the <see cref="WalletFile"/> class.
/// </summary>
/// <param name="keyType">Type of the key.</param>
/// <param name="publicKey">The public key.</param>
/// <param name="encryptedSeed">The encrypted seed.</param>
/// <param name="salt">The salt.</param>
public WalletFile(KeyType keyType, byte[] publicKey, byte[] encryptedSeed, byte[] salt)
{
KeyType = keyType;
PublicKey = publicKey;
EncryptedSeed = encryptedSeed;
Salt = salt;
}
/// <summary>
/// Gets the type of the key.
/// </summary>
/// <value>
/// The type of the key.
/// </value>
public KeyType KeyType { get; }
/// <summary>
/// Gets the public key.
/// </summary>
/// <value>
/// The public key.
/// </value>
public byte[] PublicKey { get; }
/// <summary>
/// Gets the encrypted seed.
/// </summary>
/// <value>
/// The encrypted seed.
/// </value>
public byte[] EncryptedSeed { get; }
/// <summary>
/// Gets the salt.
/// </summary>
/// <value>
/// The salt.
/// </value>
public byte[] Salt { get; }
}
}