sigstore-rs icon indicating copy to clipboard operation
sigstore-rs copied to clipboard

Remove `async` from `sigstore::trust::TrustRoot` trait

Open flavio opened this issue 1 year ago • 0 comments
trafficstars

Description

Currently (v0.8.0) the [sigstore::trust::TrustRoot] trait has two methods, both of them async. These methods have been made async because of internal implementation of sigstore::trust::sigstore::SigstoreTrustRoot.

Internally SigstoreTrustRoot has to initialize its trusted_root variable, which involves the usage of futures. I think we can initialize this variable inside of the SigstoreTrustRoot::new method (which is already async) and simplify the trait definition.

flavio avatar Apr 09 '24 11:04 flavio