Use genesis block hash in place of network ID

Reworked payment protocol to use genesis block hash in place of network ID.