Get the checksum for a descriptor.
Declared in <script/descriptor.h>
std::string
GetDescriptorChecksum(std::string const& descriptor);
If it already has one, and it is correct, return the checksum in the input.
If it already has one that is wrong, return "".
If it does not already have one, return the checksum that would need to be added.
The descriptor checksum, or an empty string if the existing one is wrong.
| Name | Description |
|---|---|
| descriptor [in] | The descriptor string to checksum. |