Skip to main content

resolve_backend_key

Function resolve_backend_key 

Source
pub fn resolve_backend_key<'a, S: BuildHasher>(
    artifacts: &'a HashMap<ArtifactId, ArtifactValue, S>,
    artifact_id: &ArtifactId,
) -> Result<BackendKeyMeta<'a>, ExecutionError>
Expand description

Resolve an artifact to a backend-managed key reference.

Used when an action operates on a key the backend holds, which is every action that needs a private key.

§Errors

Returns an error if:

  • The artifact doesn’t exist
  • The artifact is not a BackendKey variant