Skip to content

Commit

Permalink
[nspcc-dev#82] session: Add sidechain magic to RequestMetaHeader
Browse files Browse the repository at this point in the history
To prevent theoretical cross-network replay attack, we need to have
sidechain magic in NeoFS requests.

Add `sidechain_magic` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
  • Loading branch information
Leonard Lyubich committed Jan 10, 2022
1 parent 848b96e commit 6000fd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions session/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ message RequestMetaHeader {

// `RequestMetaHeader` of the origin request
RequestMetaHeader origin = 7 [json_name = "origin"];

// Network magic of NeoFS sidechain
uint64 sidechain_magic = 8 [json_name = "sidechainMagic"];
}

// Information about the response
Expand Down

0 comments on commit 6000fd3

Please sign in to comment.