src/LLC/eckey.cpp
bool ECKey::IsValid() const
    {
        if(!fSet)
            return false;

        bool fCompr = false;
        CSecret secret = GetSecret(fCompr);
        ECKey key2;
        key2.SetSecret(secret, fCompr);
        return GetPubKey() == key2.GetPubKey();
    }
/* Check if a Key is valid based on a few parameters*/
Check if a Key is valid based on a few parameters
Check if a Key is valid based on a few parameters
bool ECKey::IsValid() const
    {
        if(!fSet)
            return false;
        bool fCompr = false;
        CSecret secret = GetSecret(fCompr);
        ECKey key2;
        key2.SetSecret(secret, fCompr);
        return GetPubKey() == key2.GetPubKey();
    }
bool ECKey :: IsValid ( ) const { if ( ! fSet ) return false ; bool fCompr = false ; CSecret secret = GetSecret ( fCompr ) ; ECKey key2 ; key2 . SetSecret ( secret , fCompr ) ; return GetPubKey ( ) == key2 . GetPubKey ( ) ; }
Check if a Key is valid based on a few parameters
Check if a Key is valid based on a few parameters