From 8b78660571180b15f5319049925eb6431b0ced1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Bro=C5=84ski?= Date: Tue, 13 Feb 2024 16:52:37 +0100 Subject: [PATCH] Expose signer's field `public_key` directly. --- kairos-cli/bin/crypto/signer.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kairos-cli/bin/crypto/signer.rs b/kairos-cli/bin/crypto/signer.rs index dbfc0f79..91ff99e7 100644 --- a/kairos-cli/bin/crypto/signer.rs +++ b/kairos-cli/bin/crypto/signer.rs @@ -8,7 +8,7 @@ use casper_types::{crypto, PublicKey}; pub struct CasperSigner { secret_key: CasperPrivateKey, - public_key: CasperPublicKey, + pub public_key: CasperPublicKey, } #[allow(unused)] @@ -25,10 +25,6 @@ impl CasperSigner { }) } - pub fn get_public_key(&self) -> CasperPublicKey { - self.public_key.clone() - } - pub fn sign_message(&self, message: &[u8]) -> Result, CryptoError> { let signature = crypto::sign(message, &self.secret_key.0, &self.public_key.0); let bytes = signature