actix-web-example: add digest
This commit is contained in:
parent
0db515714e
commit
81a8e7261f
|
@ -6,7 +6,7 @@ use apub_core::{
|
||||||
deref::{Dereference, Repo},
|
deref::{Dereference, Repo},
|
||||||
ingest::Ingest,
|
ingest::Ingest,
|
||||||
};
|
};
|
||||||
use apub_rustcrypto::{RsaVerifier, RustcryptoError};
|
use apub_rustcrypto::{RsaVerifier, RustcryptoError, Sha256Digest};
|
||||||
use dashmap::DashMap;
|
use dashmap::DashMap;
|
||||||
use example_types::{AcceptedActivity, ActivityType, ObjectId};
|
use example_types::{AcceptedActivity, ActivityType, ObjectId};
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -90,6 +90,7 @@ where
|
||||||
type Error = ServerError;
|
type Error = ServerError;
|
||||||
type VerifyError = ServerError;
|
type VerifyError = ServerError;
|
||||||
type Verifier = MemoryRepo;
|
type Verifier = MemoryRepo;
|
||||||
|
type Digest = Sha256Digest;
|
||||||
|
|
||||||
fn verifier(&self) -> Self::Verifier {
|
fn verifier(&self) -> Self::Verifier {
|
||||||
self.clone()
|
self.clone()
|
||||||
|
|
Loading…
Reference in a new issue