18 lines
469 B
C#
18 lines
469 B
C#
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());
|
|
}
|