Avoid memory allocation, use cache and static Signed-off-by: Pavel Gross <p.gross@yando.com>
13 lines
321 B
C#
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());
|
|
}
|
|
}
|