diff --git a/dotnet.Nyzo.CL/NyzoUtil.cs b/dotnet.Nyzo.CL/NyzoUtil.cs index 6119622..226383a 100644 --- a/dotnet.Nyzo.CL/NyzoUtil.cs +++ b/dotnet.Nyzo.CL/NyzoUtil.cs @@ -6,7 +6,6 @@ namespace Nyzo.CL; -// Untested - todo public static class NyzoUtil { public static byte[] HexStringAsByteArray(string identifier){ identifier = identifier.Replace("-", ""); @@ -127,7 +126,7 @@ public static bool IsValidPrivateSeed(string seedString){ var isValid = false; seedString = seedString.Trim(); - var key = NyzoStringEncoder.DecodePrivateSeed(seedString); + var key = NyzoStringEncoder.DecodePrivateKey(seedString); isValid = key is not null; return isValid; @@ -184,7 +183,7 @@ public static byte[] GetSignedMessageContent(byte[] signedMessage, byte[] public try { return Sodium.PublicKeyAuth.Verify(signedMessage, publicIdentifier); } catch(CryptographicException e) { - throw new InvalidOperationException("Validate the message first", e); + throw new InvalidOperationException("Validate the arguments with IsValidSignedMessage first", e); } }