In the docs it says:
The checksum for a descriptor without one can be computed using the getdescriptorinfo RPC.
I would like to build a recovery tool where many descriptors are imported, calling
getdescriptorinfo for each is cumbersome. Manually calculating the checksum would save a lot of time and network calls.
Do I just double sha256 the entire descriptor and convert the first 4 bytes to hex?
EDIT: I found this, seems quite a bit more complex than a double hash... https://github.com/bitcoin/bitcoin/blob/master/src/script/descriptor.cpp#L95