| 55 | } |
| 56 | |
| 57 | static size_t fromwire_compact_len(const u8 **cursor, size_t *max) |
| 58 | { |
| 59 | u64 len = fromwire_compact_size(cursor, max); |
| 60 | if (len > *max) { |
| 61 | fromwire_fail(cursor, max); |
| 62 | return 0; |
| 63 | } |
| 64 | return len; |
| 65 | } |
| 66 | |
| 67 | /* BIP-0174: |
| 68 | * <keypair> := <key> <value> |
no test coverage detected