SecretEncryptionUtils Methods
The SecretEncryptionUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Decrypt |
Decrypts the specified ciphertext.
|
![]() |
Encrypt |
Encrypts the specified contract code hash.
|
![]() ![]() |
GenerateNewKeyPair |
Generates the new key pair.
|
![]() ![]() |
GenerateNewKeyPairFromSeed |
Generates a new key pair from the given 32-byte secret seed (which should be generated with a CSPRNG) and returns it as object.
The returned keys can be used for signing and key agreement.
|
![]() ![]() |
GenerateNewSeed |
Uses RandomNumberGenerator which is derived from RNGCryptoServiceProvider and is supposed to be secure
https://blogs.siliconorchid.com/post/coding-inspiration/randomness-in-dotnet/
|
![]() |
GetTxEncryptionSeed |
Gets the tx encryption key.
|
![]() |
SetEncryptionSeed |
Sets the tx encryption key / seed from which the encryption key for encrypting the transactions is generated.
|