wallet_standard_base/
sign_transaction.rs

1use core::fmt::Debug;
2
3use crate::Byte64Array;
4
5pub trait SignTransactionInput {
6    fn sign_transaction_input<T: Debug + PartialEq>(&self, bytes: T) -> &[u8];
7}
8
9/// Represents a `signedTransaction` type in JSON that can be deserialized
10pub trait SignTransactionOutput {
11    fn signed_transaction(&self) -> &[u8];
12
13    fn verify_signed_transaction<OutputError: core::error::Error>(&self)
14        -> Result<(), OutputError>;
15}
16
17/// Input should be the same as [SignTransactionInput]
18pub trait SignAndSendTransactionOutput {
19    fn signature(&self) -> &Byte64Array;
20}