common/onion: add blinding and enctlv encoding.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-04-11 12:53:09 +09:30
parent 490a819402
commit a85d40fc5e
4 changed files with 52 additions and 6 deletions

View File

@@ -89,13 +89,16 @@ static void do_generate(int argc, char **argv,
take(onion_final_hop(NULL,
use_tlv,
amt, i, amt,
NULL, NULL,
NULL)));
else
sphinx_add_hop(sp, &path[i],
take(onion_nonfinal_hop(NULL,
use_tlv,
&scid,
amt, i)));
amt, i,
NULL,
NULL)));
}
}