New_response takes multiple Proof
This commit is contained in:
parent
70bd927077
commit
319da6b1a3
@ -86,14 +86,14 @@ impl Prd {
|
|||||||
pub fn new_response(
|
pub fn new_response(
|
||||||
root_commitment: OutPoint,
|
root_commitment: OutPoint,
|
||||||
sender: String,
|
sender: String,
|
||||||
validation_token: Proof,
|
validation_tokens: Vec<Proof>,
|
||||||
pcd_commitment: AnkPcdHash,
|
pcd_commitment: AnkPcdHash,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
prd_type: PrdType::Response,
|
prd_type: PrdType::Response,
|
||||||
root_commitment: root_commitment.to_string(),
|
root_commitment: root_commitment.to_string(),
|
||||||
sender,
|
sender,
|
||||||
validation_tokens: vec![validation_token],
|
validation_tokens: validation_tokens,
|
||||||
keys: Map::new(),
|
keys: Map::new(),
|
||||||
payload: pcd_commitment.to_string(),
|
payload: pcd_commitment.to_string(),
|
||||||
proof: None,
|
proof: None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user