We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f35ea1 commit fbb88e9Copy full SHA for fbb88e9
1 file changed
DotNut/NUT13/BIP32.cs
@@ -55,6 +55,12 @@ public HdKey Derive(HdKey parent, KeyPathElement index)
55
}
56
57
var keyBytes = res.ToByteArray(true, true);
58
+ if (keyBytes.Length < 32)
59
+ {
60
+ var paddedKey = new byte[32];
61
+ keyBytes.CopyTo(paddedKey, 32 - keyBytes.Length);
62
+ keyBytes = paddedKey;
63
+ }
64
return new HdKey(keyBytes, cc);
65
66
0 commit comments