using Google.Protobuf; namespace FrostFS.SDK.Cryptography { public static class UUIDExtension { public static Guid ToUuid(this ByteString id) { return Guid.Parse(Convert.ToHexString(id.ToByteArray())); } public static byte[] ToBytes(this Guid id) { return Convert.FromHexString(id.ToString("N")); } } }