diff --git a/garble/mpz-garble/src/lib.rs b/garble/mpz-garble/src/lib.rs index 89cc15c7..51514cba 100644 --- a/garble/mpz-garble/src/lib.rs +++ b/garble/mpz-garble/src/lib.rs @@ -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, 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, 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, DecodeError>; }