Skip to content

Commit 787f03d

Browse files
committed
Add a string getter for the verification key, helping this library to dovetail with the rust-ear library.
Signed-off-by: Paul Howard <paul.howard@arm.com>
1 parent e34784d commit 787f03d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust-client/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ impl VerificationApi {
345345
.map_err(|e| Error::DataConversionError(e.to_string()))
346346
}
347347

348+
/// Obtains the EAR verification public key as a JSON string.
349+
pub fn ear_verification_key_as_string(&self) -> String {
350+
self.ear_verification_key.to_string()
351+
}
352+
348353
/// Obtains the signature algorithm scheme used with the EAR.
349354
pub fn ear_verification_algorithm(&self) -> String {
350355
match &self.ear_verification_key.algorithm {

0 commit comments

Comments
 (0)