1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Aptos Node API
*
* The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
*
* The version of the OpenAPI document: 1.2.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// MultiAgentSignature : Multi agent signature for multi agent transactions This allows you to have transactions across multiple accounts
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MultiAgentSignature {
#[serde(rename = "sender")]
pub sender: Box<models::AccountSignature>,
/// The other involved parties' addresses
#[serde(rename = "secondary_signer_addresses")]
pub secondary_signer_addresses: Vec<String>,
/// The associated signatures, in the same order as the secondary addresses
#[serde(rename = "secondary_signers")]
pub secondary_signers: Vec<models::AccountSignature>,
}
impl MultiAgentSignature {
/// Multi agent signature for multi agent transactions This allows you to have transactions across multiple accounts
pub fn new(sender: models::AccountSignature, secondary_signer_addresses: Vec<String>, secondary_signers: Vec<models::AccountSignature>) -> MultiAgentSignature {
MultiAgentSignature {
sender: Box::new(sender),
secondary_signer_addresses,
secondary_signers,
}
}
}