This commit is contained in:
2026-08-17 05:11:50 +02:00
parent 0aefaa4c18
commit be266c571d
2 changed files with 7 additions and 4 deletions
+4
View File
@@ -41,3 +41,7 @@ pub fn from_string_sig(signature: &str) -> anyhow::Result<Signature> {
.map_err(|_| anyhow::anyhow!("Invalid public key"))?,
))
}
pub fn to_string_sig(signature: &Signature) -> String {
bs58::encode(signature.to_bytes()).into_string()
}