git://git.novaco.in
/
NovacoinLibrary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d73dee2
)
Remove zero only if serialized key is 33 bytes long.
author
CryptoManiac
<balthazar.ad@gmail.com>
Thu, 27 Aug 2015 10:39:11 +0000 (13:39 +0300)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Thu, 27 Aug 2015 10:39:11 +0000 (13:39 +0300)
Novacoin/CKeyPair.cs
patch
|
blob
|
history
diff --git
a/Novacoin/CKeyPair.cs
b/Novacoin/CKeyPair.cs
index
b1845d1
..
f2a051b
100644
(file)
--- a/
Novacoin/CKeyPair.cs
+++ b/
Novacoin/CKeyPair.cs
@@
-184,7
+184,7
@@
namespace Novacoin
{
var secretBytes = new List<byte>(_Private.D.ToByteArray());
- if (secretBytes[0] == 0x00)
+ if (secretBytes.Count == 33 && secretBytes[0] == 0x00)
{
// Remove sign
secretBytes.RemoveAt(0);