| 59 | bool dev_towire_allow_invalid_node_id = false; |
| 60 | |
| 61 | void towire_node_id(u8 **pptr, const struct node_id *id) |
| 62 | { |
| 63 | /* Cheap sanity check. For wire fuzzing, we only care about correct |
| 64 | * encoding of node IDs and not whether the IDs are valid, so we disable |
| 65 | * this check while fuzzing. */ |
| 66 | if (!dev_towire_allow_invalid_node_id) |
| 67 | assert(id->k[0] == 0x2 || id->k[0] == 0x3); |
| 68 | |
| 69 | towire(pptr, id->k, sizeof(id->k)); |
| 70 | } |
| 71 | |
| 72 | bool check_signed_hash_nodeid(const struct sha256_double *hash, |
| 73 | const secp256k1_ecdsa_signature *signature, |
no test coverage detected