diff --git a/frame/session/src/lib.rs b/frame/session/src/lib.rs index e7b16808f7239..3255bc20af4c6 100644 --- a/frame/session/src/lib.rs +++ b/frame/session/src/lib.rs @@ -819,7 +819,8 @@ impl Module { >::insert(v, keys); } - fn key_owner(id: KeyTypeId, key_data: &[u8]) -> Option { + /// Query the owner of a session key by returning the owner's validator ID. + pub fn key_owner(id: KeyTypeId, key_data: &[u8]) -> Option { >::get((id, key_data)) }