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

FieldBytesDescription
CH (challenge)16Standard 16-byte challenge (challenge-response / replay protection).
SI (session id)4Session id; 0 = TEST mode.
SH (shard id)1Source shard (1 = CCv1, 2 = CCv2).
RSV1Reserved.
ONR2Old-coin count N (big-endian).
old coinsvarN x 21: DN(1) + SN(4) + AN(16) each (per-coin authentication).
PANG16Seed for new coin AN derivation.
NR2New-coin count M (big-endian).
new coinsvarM x 5: DN(1) + SN(4) each (an optimistic over-set; only enough to cover passed value are created).
EOF2Terminator (0x3E3E).

Response Body parameters

FieldBytesDescription
actual_new_coins2Number of new coins actually allocated (big-endian).
result bitmapvarceil(N/8) bytes: bit i = 1 means old coin i passed and was deleted.