pub struct SignatureVerifier { /* private fields */ }Expand description
Ed25519 signature verifier for plugin .wasm files.
Trust root format: a directory of *.pub files, each containing
a base64-encoded 32-byte Ed25519 public key (one per trusted
publisher). The .sig file format is base64 of the raw 64-byte
Ed25519 signature over the .wasm bytes.
Wire shape is intentionally plain text + base64 — no PEM, no
X.509, no JSON envelope — so operators can sign with openssl pkeyutl -sign or signify without bringing a CA story along.
Implementations§
Source§impl SignatureVerifier
impl SignatureVerifier
Sourcepub fn from_trust_root(dir: &Path) -> Result<Self, PluginLoadError>
pub fn from_trust_root(dir: &Path) -> Result<Self, PluginLoadError>
Build a verifier from a directory of *.pub files. Each file
must contain exactly one base64-encoded 32-byte Ed25519
public key. Whitespace at the start / end is tolerated.
Trait Implementations§
Source§impl Debug for SignatureVerifier
impl Debug for SignatureVerifier
Source§impl Default for SignatureVerifier
impl Default for SignatureVerifier
Source§fn default() -> SignatureVerifier
fn default() -> SignatureVerifier
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignatureVerifier
impl RefUnwindSafe for SignatureVerifier
impl Send for SignatureVerifier
impl Sync for SignatureVerifier
impl Unpin for SignatureVerifier
impl UnsafeUnpin for SignatureVerifier
impl UnwindSafe for SignatureVerifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more