updated protocol (v2 pubkey and v3 broadcast) and fixed build errors