From 81a8e7261f454e92bc29f0827d8f0f460bf9ac6b Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Fri, 19 Nov 2021 17:56:00 -0600 Subject: [PATCH] actix-web-example: add digest --- examples/actix-web-example/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/actix-web-example/src/main.rs b/examples/actix-web-example/src/main.rs index afbfc11..a81c25c 100644 --- a/examples/actix-web-example/src/main.rs +++ b/examples/actix-web-example/src/main.rs @@ -6,7 +6,7 @@ use apub_core::{ deref::{Dereference, Repo}, ingest::Ingest, }; -use apub_rustcrypto::{RsaVerifier, RustcryptoError}; +use apub_rustcrypto::{RsaVerifier, RustcryptoError, Sha256Digest}; use dashmap::DashMap; use example_types::{AcceptedActivity, ActivityType, ObjectId}; use std::{ @@ -90,6 +90,7 @@ where type Error = ServerError; type VerifyError = ServerError; type Verifier = MemoryRepo; + type Digest = Sha256Digest; fn verifier(&self) -> Self::Verifier { self.clone()