Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ContractProposalEventArgs.cs
3
5{
10 {
11 private readonly string contractId;
12 private readonly string role;
13 private readonly string message;
14 private readonly byte[] key;
15 private readonly SymmetricCipherAlgorithms keyAlgorithm;
16
28 : base(e)
29 {
30 this.contractId = ContractId;
31 this.role = Role;
32 this.message = Message;
33 this.key = Key;
34 this.keyAlgorithm = KeyAlgorithm;
35 }
36
40 public string ContractId => this.contractId;
41
45 public string Role => this.role;
46
50 public string MessageText => this.message;
51
55 public bool HasSharedSecret => !(this.key is null);
56
60 public byte[] Key => this.key;
61
65 public SymmetricCipherAlgorithms KeyAlgorithm => this.keyAlgorithm;
66 }
67}
SymmetricCipherAlgorithms KeyAlgorithm
Encryption algorithm to encrypt and decrypt confidential parameters.
ContractProposalEventArgs(MessageEventArgs e, string ContractId, string Role, string Message, byte[] Key, SymmetricCipherAlgorithms KeyAlgorithm)
Event arguments for smart contract petitions
byte[] Key
Shared secret used to decrypt confidential parameters.
Class defining a role
Definition: Role.cs:7
Event arguments for message events.
SymmetricCipherAlgorithms
Enumeration of symmetric cipher algorithms available in the library.