switch_shard_no_sum_with_sns — Group 10, Code 175
Single-call shard switch where each old coin carries its OWN AN (no XOR sum), supporting partial success.
Source-derived reference
Field layout below is read from raidax/cmd_shards.c (cmd_switch_shard_no_sum_with_sns). Minimum body size: 52 bytes. Verify against the current build before relying.
Purpose
Per-coin verification means some old coins can pass and others fail; only the value that passed is converted. Returns a bitmap of which old coins succeeded. This is the most granular switch variant.
Request Body parameters
| Field | Bytes | Description |
|---|---|---|
| CH (challenge) | 16 | Standard 16-byte challenge (challenge-response / replay protection). |
| SI (session id) | 4 | Session id; 0 = TEST mode. |
| SH (shard id) | 1 | Source shard (1 = CCv1, 2 = CCv2). |
| RSV | 1 | Reserved. |
| ONR | 2 | Old-coin count N (big-endian). |
| old coins | var | N x 21: DN(1) + SN(4) + AN(16) each (per-coin authentication). |
| PANG | 16 | Seed for new coin AN derivation. |
| NR | 2 | New-coin count M (big-endian). |
| new coins | var | M x 5: DN(1) + SN(4) each (an optimistic over-set; only enough to cover passed value are created). |
| EOF | 2 | Terminator (0x3E3E). |
Response Body parameters
| Field | Bytes | Description |
|---|---|---|
| actual_new_coins | 2 | Number of new coins actually allocated (big-endian). |
| result bitmap | var | ceil(N/8) bytes: bit i = 1 means old coin i passed and was deleted. |