@achow101 noted we don't reject them therefore they must be silently accepted. This is not part of the specs, we should remove them. Also cc @sipa.

I can take care of this.
{
        if (m_derive == DeriveType::HARDENED) {
            out = ToString(StringType::PUBLIC, true);
            return true;
        }
        
        int i = (int)m_path.size() - 1;
        for (; i >= 0; --i) {
            if (m_path.at(i) >> 31) {
                break;
            }
        }
        
        if (i == -1) {
            out = ToString();
            return true;
        }
        
        KeyOriginInfo origin;
        int k = 0;
        for (; k <= i; ++k) {
            
            origin.path.push_back(m_path.at(k));
        }