aboutsummaryrefslogtreecommitdiffstats
path: root/src/text.rs
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2026-03-28 22:35:26 +0000
committers-ol <s+removethis@s-ol.nu>2026-03-28 22:38:32 +0000
commitb4bb62b7ca0be710a0a7d5484cb9d3371f24ec2a (patch)
tree2cb6178dfa67f52f9be5bd7844969ca92e8cb4f8 /src/text.rs
parentexpose more fields (diff)
downloadmeshcore-rs-dumb-no-std.tar.gz
meshcore-rs-dumb-no-std.zip
no-std compatible cryptodumb-no-std
Diffstat (limited to 'src/text.rs')
-rw-r--r--src/text.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/text.rs b/src/text.rs
index 60d8869..e9efc2e 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -6,8 +6,7 @@ use crate::string_helper::{
MessageString, NameString, message_string_from_slice, name_string_from_slice,
};
-#[cfg(feature = "std")]
-use crate::std_identity::Keystore;
+use crate::crypto::Keystore;
#[derive(PartialEq, Debug, Clone)]
pub struct Text {
@@ -173,13 +172,13 @@ impl From<Bytes> for GroupText {
}
impl GroupText {
- #[cfg(feature = "std")]
- pub fn try_decrypt(&mut self, keysore: &Keystore) -> bool {
+ pub fn try_decrypt<T: Keystore>(&mut self, keysore: &T) -> bool {
let decrypt_result = keysore.decrypt_and_id_group(self.hash, self.mac, &self.ciphertext);
if let Some((cleartext, group)) = decrypt_result {
let mut cleartext = ClearText::from(cleartext);
- cleartext.crypto_recipient = group;
+ // @TODO: what?
+ // cleartext.crypto_recipient = group;
self.cleartext = Some(cleartext);
true
} else {