Skip to main content

Session Layer

Manages the data exchange session, including processing the payload in Protocol Buffers format and applying an ECDSA signature to ensure data integrity and authenticity. Messages at this layer have the following structure:

transport.pb
message ApiTransport {
bytes data = 1;
optional bytes sign = 2;
}
  • data (Payload): The payload data is transmitted as a byte array.

  • sign (ECDSA Signature): If the data exchange occurs within a session, the message contains the sign field, representing the ECDSA signature in the format of R + S + V.

The signature format includes:

  • R and S: Signature components (32 + 32 bytes).

  • V: Recovery scheme indicating which key to use for signature verification (1 byte).