New_response takes multiple Proof

This commit is contained in:
Sosthene 2024-10-04 09:25:33 +02:00
parent 70bd927077
commit 319da6b1a3

View File

@ -86,14 +86,14 @@ impl Prd {
pub fn new_response(
root_commitment: OutPoint,
sender: String,
validation_token: Proof,
validation_tokens: Vec<Proof>,
pcd_commitment: AnkPcdHash,
) -> Self {
Self {
prd_type: PrdType::Response,
root_commitment: root_commitment.to_string(),
sender,
validation_tokens: vec![validation_token],
validation_tokens: validation_tokens,
keys: Map::new(),
payload: pcd_commitment.to_string(),
proof: None,