| 68 | } |
| 69 | |
| 70 | static char *fmt_time(const tal_t *ctx, u64 time) |
| 71 | { |
| 72 | /* ctime is not sane. Take pointer, returns \n in string. */ |
| 73 | time_t t = time; |
| 74 | const char *p = ctime(&t); |
| 75 | |
| 76 | return tal_fmt(ctx, "%.*s", (int)strcspn(p, "\n"), p); |
| 77 | } |
| 78 | |
| 79 | static bool sign_b11(const u5 *u5bytes, |
| 80 | const u8 *hrpu8, |