The bulk of this patch is actually hoisting the get_shared_secret() function (unchanged) so we can call it earlier. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
We leave the *build* results in lightningd/ for ease of in-place testing though. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>