Rest of work on new hashcash based identity scheme.

This commit is contained in:
Adam Ierymenko 2013-10-05 07:00:55 -04:00
parent b0187f4472
commit 0e43e5e8f2
6 changed files with 41 additions and 177 deletions

View file

@ -128,19 +128,11 @@ public:
void generate();
/**
* Performs local validation, with two levels available
*
* With the parameter false, this performs self-signature verification
* which checks the basic integrity of the key and identity. Setting the
* parameter to true performs a fairly time consuming computation to
* check that the address was properly derived from the key. This is
* normally not done unless a conflicting identity is received, in
* which case the invalid identity is thrown out.
*
* @param doAddressDerivationCheck If true, do the time-consuming address check
* Check the validity of this identity's pairing of key to address
*
* @return True if validation check passes
*/
bool locallyValidate(bool doAddressDerivationCheck) const;
bool locallyValidate() const;
/**
* @return True if this identity contains a private key