frostfs-sdk-csharp/src/FrostFS.SDK.ClientV2/CllientKey.cs
Pavel Gross 0ddde467cd [#20] Client: Optimize memory usage
Avoid memory allocation, use cache and static

Signed-off-by: Pavel Gross <p.gross@yando.com>
2024-08-01 16:18:19 +03:00

13 lines
321 B
C#

using FrostFS.SDK.Cryptography;
using Google.Protobuf;
using System.Security.Cryptography;
namespace FrostFS.SDK.ClientV2
{
public class ClientKey(ECDsa key)
{
internal ECDsa ECDsaKey { get; } = key;
internal ByteString PublicKeyProto { get; } = ByteString.CopyFrom(key.PublicKey());
}
}