git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Merge branch '0.4.x' into 0.5.0.x
[novacoin.git]
/
src
/
key.h
diff --git
a/src/key.h
b/src/key.h
index
df5cfeb
..
0105916
100644
(file)
--- a/
src/key.h
+++ b/
src/key.h
@@
-387,6
+387,17
@@
public:
{
return CBitcoinAddress(GetPubKey());
}
+
+ bool IsValid()
+ {
+ if (!fSet)
+ return false;
+
+ CSecret secret = GetSecret();
+ CKey key2;
+ key2.SetSecret(secret);
+ return GetPubKey() == key2.GetPubKey();
+ }
};
#endif