diff --git a/src/database/mod.rs b/src/database/mod.rs
index 7c48783a..33ec7ccf 100644
--- a/src/database/mod.rs
+++ b/src/database/mod.rs
@@ -57,7 +57,7 @@ pub use memory::MemoryDatabase;
/// This trait defines the list of operations that must be implemented on the [`Database`] type and
/// the [`BatchDatabase::Batch`] type.
pub trait BatchOperations {
- /// Store a script_pubkey along with its script type and child number
+ /// Store a script_pubkey along with its keychain and child number.
fn set_script_pubkey(
&mut self,
script: &Script,
@@ -70,17 +70,17 @@ pub trait BatchOperations {
fn set_raw_tx(&mut self, transaction: &Transaction) -> Result<(), Error>;
/// Store the metadata of a transaction
fn set_tx(&mut self, transaction: &TransactionDetails) -> Result<(), Error>;
- /// Store the last derivation index for a given script type
+ /// Store the last derivation index for a given keychain.
fn set_last_index(&mut self, keychain: KeychainKind, value: u32) -> Result<(), Error>;
- /// Delete a script_pubkey given the script type and its child number
+ /// Delete a script_pubkey given the keychain and its child number.
fn del_script_pubkey_from_path(
&mut self,
keychain: KeychainKind,
child: u32,
) -> Result