| 944 | } |
| 945 | |
| 946 | static struct io_plan *act_one_responder(struct io_conn *conn, |
| 947 | struct handshake *h) |
| 948 | { |
| 949 | |
| 950 | SUPERVERBOSE("Responder: Act 1"); |
| 951 | |
| 952 | /* BOLT #8: |
| 953 | * |
| 954 | * 1. Read _exactly_ 50 bytes from the network buffer. |
| 955 | * |
| 956 | * 2. Parse the read message (`m`) into `v`, `re`, and `c`: |
| 957 | * * where `v` is the _first_ byte of `m`, `re` is the next 33 |
| 958 | * bytes of `m`, and `c` is the last 16 bytes of `m`. |
| 959 | */ |
| 960 | return io_read(conn, &h->act1, ACT_ONE_SIZE, act_one_responder2, h); |
| 961 | } |
| 962 | |
| 963 | struct io_plan *responder_handshake_(struct io_conn *conn, |
| 964 | const struct pubkey *my_id, |
no outgoing calls
no test coverage detected