Function cuprate_blockchain::ops::key_image::key_image_exists

source ·
pub fn key_image_exists(
    key_image: &KeyImage,
    table_key_images: &impl DatabaseRo<KeyImages>,
) -> Result<bool, RuntimeError>
Expand description

Check if a KeyImage exists - i.e. if it is “spent”.

§Errors

This function returns RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.