using System.Security.Cryptography; using FrostFS.SDK.Cryptography; using Google.Protobuf; namespace FrostFS.SDK.Client; public class ClientKey(ECDsa key) { internal ECDsa ECDsaKey { get; } = key; internal ByteString PublicKeyProto { get; } = ByteString.CopyFrom(key.PublicKey()); internal string PublicKey { get; } = key.PublicKey().ToString(); internal FrostFsOwner Owner { get; } = new FrostFsOwner(key.PublicKey().PublicKeyToAddress()); }