From 8315134d78b954af830b114512dbb5de6145dc66 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 27 Nov 2023 17:30:24 +0100 Subject: rename EmptyIdentity -> DerivingRoot Seems to fit better what the error actually means. --- src/kem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kem.rs') diff --git a/src/kem.rs b/src/kem.rs index a8261b6..091247d 100644 --- a/src/kem.rs +++ b/src/kem.rs @@ -298,7 +298,7 @@ impl HybridKem { { let identity = self.mapper.map_identity(identity)?; let Some((child, parent)) = identity.split_last() else { - return Err(Error::EmptyIdentity); + return Err(Error::DerivingRoot); }; let private_key = self .hibe -- cgit v1.2.3