def regenerate_key_pair
      if @private_key
        privkey, pubkey = BTC::OpenSSL.regenerate_keypair(@private_key, public_key_compressed: @public_key_compressed)
        if privkey && pubkey
          @private_key = privkey
          @public_key = pubkey
        end
      end
      self
    end
def regenerate_key_pair
      if @private_key
        privkey, pubkey = BTC::OpenSSL.regenerate_keypair(@private_key, public_key_compressed: @public_key_compressed)
        if privkey && pubkey
          @private_key = privkey
          @public_key = pubkey
        end
      end
      self
    end
Helpers