Skip to content

Commit

Permalink
revert wording for decode
Browse files Browse the repository at this point in the history
  • Loading branch information
themighty1 committed Jan 17, 2024
1 parent bc074e4 commit b24422b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions garble/mpz-garble/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,22 +370,22 @@ pub trait Verify {
) -> Result<(), VerifyError>;
}

/// This trait provides methods for decoding output values.
/// This trait provides methods for decoding values.
#[async_trait]
pub trait Decode {
/// Decodes the provided output values, returning the plaintext values to all parties.
/// Decodes the provided values, returning the plaintext values to all parties.
async fn decode(&mut self, values: &[ValueRef]) -> Result<Vec<Value>, DecodeError>;
}

/// This trait provides methods for decoding output values with different privacy configurations.
/// This trait provides methods for decoding values with different privacy configurations.
#[async_trait]
pub trait DecodePrivate {
/// Decodes the provided output values, returning the plaintext values to only this party.
/// Decodes the provided values, returning the plaintext values to only this party.
async fn decode_private(&mut self, values: &[ValueRef]) -> Result<Vec<Value>, DecodeError>;

/// Decodes the provided output values, returning the plaintext values to the other party(s).
/// Decodes the provided values, returning the plaintext values to the other party(s).
async fn decode_blind(&mut self, values: &[ValueRef]) -> Result<(), DecodeError>;

/// Decodes the provided output values, returning additive shares of plaintext values to all parties.
/// Decodes the provided values, returning additive shares of plaintext values to all parties.
async fn decode_shared(&mut self, values: &[ValueRef]) -> Result<Vec<Value>, DecodeError>;
}

0 comments on commit b24422b

Please sign in to comment.