Added derive_sender_key method.