It's really a lightningd-only thing, and we're about to do surgery on it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Raw crypto_state is what we send across the wire: the peer one is for use in async crypto io routines (peer_read_message/peer_write_message). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This creates output similar to the BOLT #8 test vectors. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>