1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub use crate::protocol::protocol_message_manager::TapleMessages;
use crate::{signature::Signed, ApprovalResponse, EvaluationResponse};

#[allow(dead_code)]
pub fn create_evaluator_response(evaluator_response: Signed<EvaluationResponse>) -> TapleMessages {
    TapleMessages::EventMessage(crate::event::EventCommand::EvaluatorResponse {
        evaluator_response,
    })
}

#[allow(dead_code)]
pub fn create_approver_response(approval: Signed<ApprovalResponse>) -> TapleMessages {
    TapleMessages::EventMessage(crate::event::EventCommand::ApproverResponse { approval: approval })
}