Get the compressed ciphertext and commitment to needed to decrypt message encrypted using Robust DKGitH protocol
(
&self,
index: usize,
)
| 1877 | |
| 1878 | /// Get the compressed ciphertext and commitment to needed to decrypt message encrypted using Robust DKGitH protocol |
| 1879 | pub fn get_tz21_robust_ciphertext_and_commitment<D: FullDigest + Digest>( |
| 1880 | &self, |
| 1881 | index: usize, |
| 1882 | ) -> Result<(rdkgith_decls::Ciphertext<E::G1Affine>, E::G1Affine), ProofSystemError> { |
| 1883 | let st = self.statement_proof(index)?; |
| 1884 | if let StatementProof::VeTZ21Robust(s) = st { |
| 1885 | let ve_proof = &s.ve_proof; |
| 1886 | let ct = ve_proof.compress::<{ rdkgith_decls::SUBSET_SIZE }, D>()?; |
| 1887 | Ok((ct, s.commitment)) |
| 1888 | } else { |
| 1889 | Err(ProofSystemError::NotAVeTZ21StatementProof) |
| 1890 | } |
| 1891 | } |
| 1892 | |
| 1893 | /*/// Used to check if response (from Schnorr protocol) for a witness is equal to other witnesses that |
| 1894 | /// it must be equal to. This is required when the `ProofSpec` demands certain witnesses to be equal. |
nothing calls this directly
no test coverage detected