def hash160(hex)
      Digest::RMD160.hexdigest(Digest::SHA256.digest(hex.htb))
    end
def hash160(hex)
      Digest::RMD160.hexdigest(Digest::SHA256.digest(hex.htb))
    end
generate sha256-ripemd160 hash for value