fn parse_swap_cid(field: &str, cid: &str) -> Result<Cid, ApiError>Expand description
Decodes a swap field, or refuses the request.
A 400 rather than an InvalidSwap: InvalidSwap means the swap did not
hold, and tells a client to re-read the record and retry. A CID that does
not decode will not decode on the retry either.