mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 00:31:09 +00:00
fix(types): fix typo
This commit is contained in:
parent
5a701b6a5e
commit
5c4dfd4a96
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ pub struct UserIdentityDesc {
|
|||
|
||||
#[derive(Debug, Error)]
|
||||
#[error(transparent)]
|
||||
pub struct VerfiyError(#[from] VerifyErrorImpl);
|
||||
pub struct VerifyError(#[from] VerifyErrorImpl);
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
enum VerifyErrorImpl {
|
||||
|
@ -45,7 +45,7 @@ impl UserIdentityDesc {
|
|||
pub const WELL_KNOWN_PATH: &str = "/.well-known/blah/identity.json";
|
||||
|
||||
/// Validate signatures of the identity description at given time.
|
||||
pub fn verify(&self, id_url: Option<&IdUrl>, now_timestamp: u64) -> Result<(), VerfiyError> {
|
||||
pub fn verify(&self, id_url: Option<&IdUrl>, now_timestamp: u64) -> Result<(), VerifyError> {
|
||||
if self.id_key != self.profile.signee.user.id_key {
|
||||
return Err(VerifyErrorImpl::ProfileIdKeyMismatch.into());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue