use base64::{engine::general_purpose, Engine}; use crate::helpers::chainsig::ChainSig; pub struct Svm {} impl ChainSig for Svm { fn prepare_transaction_for_signing(encoded_tx: String) -> Vec { let raw_bytes = general_purpose::STANDARD .decode(encoded_tx.as_bytes()) .expect("Failed to decode message"); vec![hex::encode(raw_bytes)].into() } }