fn should_correctly_format_dealing_display_message() {
    let dealing = NiDkgDealing::dummy_dealing_for_tests(0);

    let display_text = format!("{}", dealing);

    let expected_text =
        "NiDkgDealing { internal_dealing: Groth20_Bls12_381(Dealing { \
        public_coefficients: PublicCoefficientsBytes { coefficients: [] }, ciphertexts: FsEncryptionCiphertext { \
         rand_r: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          rand_s: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          rand_z: [G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          ciphertext_chunks: [[G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)]] }, \
          zk_proof_decryptability: ZKProofDecHelper { first_move_y0: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          first_move_b: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          first_move_c: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          second_move_d: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           G1(0x010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101)], \
           second_move_y: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           response_z_r: [Fr(\"0000000000000000000000000000000000000000000000000000000000000000\")], \
           response_z_s: [Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\")], \
           response_z_b: Fr(\"0000000000000000000000000000000000000000000000000000000000000000\") }, \
           zk_proof_correct_sharing: ZKProofShare { \
           first_move_f: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           first_move_a: G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           first_move_y: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           response_z_r: Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           response_z_a: Fr(\"0000000000000000000000000000000000000000000000000000000000000000\") } }) }";

    assert_eq!(display_text, expected_text);
}
// This is explicitly tested since this appears in debug log messages. The
// message should be well readable and in particular contain hex encodings where
// applicable.
This is explicitly tested since this appears in debug log messages. The
message should be well readable and in particular contain hex encodings where
applicable.
This is explicitly tested since this appears in debug log messages . The message should be well readable and in particular contain hex encodings where applicable .
fn should_correctly_format_dealing_display_message() {
    let dealing = NiDkgDealing::dummy_dealing_for_tests(0);
    let display_text = format!("{}", dealing);
    let expected_text =
        "NiDkgDealing { internal_dealing: Groth20_Bls12_381(Dealing { \
        public_coefficients: PublicCoefficientsBytes { coefficients: [] }, ciphertexts: FsEncryptionCiphertext { \
         rand_r: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          rand_s: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          rand_z: [G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          ciphertext_chunks: [[G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)]] }, \
          zk_proof_decryptability: ZKProofDecHelper { first_move_y0: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          first_move_b: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          first_move_c: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
          G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)], \
          second_move_d: [G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           G1(0x010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101)], \
           second_move_y: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           response_z_r: [Fr(\"0000000000000000000000000000000000000000000000000000000000000000\")], \
           response_z_s: [Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           Fr(\"0000000000000000000000000000000000000000000000000000000000000000\")], \
           response_z_b: Fr(\"0000000000000000000000000000000000000000000000000000000000000000\") }, \
           zk_proof_correct_sharing: ZKProofShare { \
           first_move_f: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           first_move_a: G2(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           first_move_y: G1(0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), \
           response_z_r: Fr(\"0000000000000000000000000000000000000000000000000000000000000000\"), \
           response_z_a: Fr(\"0000000000000000000000000000000000000000000000000000000000000000\") } }) }";
    assert_eq!(display_text, expected_text);
}
fn should_correctly_format_dealing_display_message ( ) { let dealing = NiDkgDealing :: dummy_dealing_for_tests ( 0 ) ; let display_text = format ! ( " " dealing ) ; let expected_text = " \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \" \" \
 \
 \
 \
 \
 \" \" \
 \" \" " ; assert_eq ! ( display_text expected_text ) ; }
This is explicitly tested since this appears in debug log messages.
This is explicitly tested since this appears in debug log messages .