|
|
|
@ -180,35 +180,42 @@ pub struct Transactions {
|
|
|
|
|
pub weight: u32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
// pub struct TransactionJSON {
|
|
|
|
|
// pub version: u32,
|
|
|
|
|
// pub unlock_time: u64,
|
|
|
|
|
// pub vin: TransactionInputs,
|
|
|
|
|
// pub vout: TransactionOutputs,
|
|
|
|
|
// pub extra: String,
|
|
|
|
|
// pub signatures: Vec<String>
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
// pub struct TransactionInputs {
|
|
|
|
|
// pub pubkey: PreviousTransactionKey
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
// pub struct PreviousTransactionKey {
|
|
|
|
|
// pub amount: u32,
|
|
|
|
|
// pub key_offsets: Vec<u32>,
|
|
|
|
|
// pub k_image: String
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
// pub struct TransactionOutputs {
|
|
|
|
|
// pub amount: u32,
|
|
|
|
|
// pub target: OutputStealthAddress
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
// pub struct OutputStealthAddress {
|
|
|
|
|
// pub key: String
|
|
|
|
|
// }
|
|
|
|
|
#[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
pub struct TransactionJSON {
|
|
|
|
|
pub version: u32,
|
|
|
|
|
pub unlock_time: u64,
|
|
|
|
|
pub vin: Vec<TransactionInputs>,
|
|
|
|
|
pub vout: Vec<TransactionOutputs>,
|
|
|
|
|
pub extra: Vec<u32>,
|
|
|
|
|
pub rct_signatures: RingSignatures
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
pub struct TransactionInputs {
|
|
|
|
|
pub key: PreviousTransactionKey
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
pub struct PreviousTransactionKey {
|
|
|
|
|
pub amount: u32,
|
|
|
|
|
pub key_offsets: Vec<u32>,
|
|
|
|
|
pub k_image: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
pub struct TransactionOutputs {
|
|
|
|
|
pub amount: u32,
|
|
|
|
|
pub target: OutputStealthAddress
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
pub struct OutputStealthAddress {
|
|
|
|
|
pub key: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
|
|
|
|
|
pub struct RingSignatures {
|
|
|
|
|
pub r#type: u32,
|
|
|
|
|
pub txnFee: u64,
|
|
|
|
|
pub outPk: Vec<String>
|
|
|
|
|
}
|
|
|
|
|