Added `serialize` on `SVSessionMethods`

This commit is contained in:
Mahesh Bansod 2021-11-03 12:39:40 +05:30
parent 9619e63361
commit 07b813dfa8
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ impl SVSessionMethods {
}
}
pub fn serialize(&self) -> Vec<u8> {
self.session.lock().unwrap().serialize()
}
/// `session.create`
/// Creates a session and sets a session established object which contains a challenge.
/// A session object is not yet returned - the challenge needs to be solved and sent inside a session identification