mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
sphinx: Migrate sphinx compression to new interface
It also removes the duplicate compression code and serialization code.
This commit is contained in:
committed by
Rusty Russell
parent
6dd14a2039
commit
ef86ee0bae
@@ -234,15 +234,6 @@ void sphinx_add_hop(struct sphinx_path *path, const struct pubkey *pubkey,
|
||||
*/
|
||||
size_t sphinx_path_payloads_size(const struct sphinx_path *path);
|
||||
|
||||
/**
|
||||
* Compress a rendez-vous onion by removing the unused blinded middle
|
||||
* part. This middle part can be regenerated by the node processing this
|
||||
* onion.
|
||||
*/
|
||||
u8 *serialize_compressed_onion(const tal_t *ctx,
|
||||
const struct sphinx_path *sp,
|
||||
const struct onionpacket *packet);
|
||||
|
||||
/**
|
||||
* Set the rendez-vous node_id and make the onion generated from the
|
||||
* sphinx_path compressible. To unset pass in a NULL rendezvous_id.
|
||||
|
||||
Reference in New Issue
Block a user