Skip to content

Commit

Permalink
fixup! sphinx: Treat compressed onions as a standalone struct
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Mar 2, 2020
1 parent d2f9a65 commit a50543b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 0 additions & 7 deletions common/sphinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@

#define RHO_KEYTYPE "rho"

struct sphinx_compressed_onion {
u8 version;
struct pubkey ephemeralkey;
u8 *routinginfo;
u8 mac[HMAC_SIZE];
};

struct hop_params {
struct secret secret;
u8 blind[BLINDING_FACTOR_SIZE];
Expand Down
8 changes: 7 additions & 1 deletion common/sphinx.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ struct onionpacket {
u8 routinginfo[ROUTING_INFO_SIZE];
};

struct sphinx_compressed_onion;
struct sphinx_compressed_onion {
u8 version;
struct pubkey ephemeralkey;
u8 *routinginfo;
u8 mac[HMAC_SIZE];
};


enum route_next_case {
ONION_END = 0,
Expand Down

0 comments on commit a50543b

Please sign in to comment.