X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=blobdiff_plain;f=Novacoin%2FInterop.cs;h=f3a9e2e4884b4ebd961e78982dec9b4d87fce43b;hp=55979d714e103777f76978973329f8dbacea8d80;hb=bbc180adad56adde0fd4421c9b8b49bca27397a4;hpb=66dee00aa8671fa2676cefdba7c28ba6bded6ba4 diff --git a/Novacoin/Interop.cs b/Novacoin/Interop.cs index 55979d7..f3a9e2e 100644 --- a/Novacoin/Interop.cs +++ b/Novacoin/Interop.cs @@ -96,6 +96,14 @@ namespace Novacoin return result; } + public static byte[] AppendWithZeros(byte[] bytes, int nTargetLen=32) + { + var result = new byte[nTargetLen]; + bytes.CopyTo(result, 0); + + return result; + } + public static string ToHex(byte[] bytes) { var sb = new StringBuilder();