using System.Security.Cryptography; using FrostFS.SDK.Cryptography; namespace FrostFS.SDK.ModelsV2; public class OwnerId { public string Value { get; } public OwnerId(string id) { Value = id; } public static OwnerId FromKey(ECDsa key) { return new OwnerId(key.PublicKey().PublicKeyToAddress()); } public byte[] ToHash() { return Base58.Decode(Value); } }