get_ticket — Group 2, Code 40

Ticket issuance: proof that a coin authenticated at a given RAIDA.

Purpose

get_ticket is the ticket-issuance entry point for healing. A client authenticates against one RAIDA and receives proof that can be presented to others during repair or ownership validation workflows.

The live implementation enforces a minimum request body length of 39 bytes.

Legacy wire reference — verify before relying

This byte layout was restored from the pre-V2 documentation (commit ceba44b). It has not been cross-checked against the current raidax implementation in every detail.

Request body

One 21-byte coin record per token: denomination (1) + serial number (4, BE) + AN (16). Repeats for each coin in the batch.

CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH CH DN SN SN SN SN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN DN SN SN SN SN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN ... 3E 3E

Per-coin packet diagram

DN 0 SN (4B, BE) 1 AN (16 bytes) 5 20

Offsets are relative to the start of each 21-byte record.

Response

All-pass status 241 returns a 4-byte Master Ticket. Mixed status 243 returns a 5-byte mixed bitfield plus the 4-byte Master Ticket. All-fail 242 returns just the terminator.