[#3] Move to netstandard 2.0

Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
p.gross 2024-05-29 12:43:00 +03:00
parent ae3fc419a4
commit 0c4723c705
55 changed files with 2508 additions and 1818 deletions

View file

@ -1,4 +1,6 @@
using FrostFS.SDK.Cryptography;
using System;
using FrostFS.SDK.Cryptography;
namespace FrostFS.SDK.ModelsV2;
@ -10,7 +12,7 @@ public class ObjectId
{
Value = id;
}
public static ObjectId FromHash(byte[] hash)
{
if (hash.Length != Constants.Sha256HashLength)
@ -19,7 +21,7 @@ public class ObjectId
}
return new ObjectId(Base58.Encode(hash));
}
public byte[] ToHash()
{
return Base58.Decode(Value);