core_crypto_keystore/
proteus.rs1use crate::{CryptoKeystoreResult, Database, entities::ProteusPrekey};
2
3impl Database {
4 pub async fn proteus_store_prekey(&self, id: u16, prekey: &[u8]) -> CryptoKeystoreResult<()> {
5 self.with_transaction(async |tx| tx.save(ProteusPrekey::from_raw(id, prekey.to_vec())).await)
6 .await
7 }
8}