src/LLC/eckey.cpp
bool ECKey::SetPubKey(const std::vector<uint8_t>& vchPubKey)
    {
        const uint8_t* pbegin = &vchPubKey[0];
        if(!o2i_ECPublicKey(&pkey, &pbegin, vchPubKey.size()))
            return false;

        fSet = true;
        if(vchPubKey.size() >= 33)
            SetCompressedPubKey();

        return true;
    }
/* Returns true on the setting of a public key */
Returns true on the setting of a public key
Returns true on the setting of a public key
bool ECKey::SetPubKey(const std::vector<uint8_t>& vchPubKey)
    {
        const uint8_t* pbegin = &vchPubKey[0];
        if(!o2i_ECPublicKey(&pkey, &pbegin, vchPubKey.size()))
            return false;
        fSet = true;
        if(vchPubKey.size() >= 33)
            SetCompressedPubKey();
        return true;
    }
bool ECKey :: SetPubKey ( const std :: vector < uint8_t > & vchPubKey ) { const uint8_t * pbegin = & vchPubKey [ 0 ] ; if ( ! o2i_ECPublicKey ( & pkey , & pbegin , vchPubKey . size ( ) ) ) return false ; fSet = true ; if ( vchPubKey . size ( ) >= 33 ) SetCompressedPubKey ( ) ; return true ; }
Returns true on the setting of a public key
Returns true on the setting of a public key