|
| 1 | +# Translations template for PROJECT. |
| 2 | +# Copyright (C) 2025 ORGANIZATION |
| 3 | +# This file is distributed under the same license as the PROJECT project. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, 2025. |
| 5 | +# |
| 6 | +#, fuzzy |
| 7 | +msgid "" |
| 8 | +msgstr "" |
| 9 | +"Project-Id-Version: PROJECT VERSION\n" |
| 10 | +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" |
| 11 | +"POT-Creation-Date: 2025-03-11 10:28+0800\n" |
| 12 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 14 | +"Language-Team: LANGUAGE <LL@li.org>\n" |
| 15 | +"MIME-Version: 1.0\n" |
| 16 | +"Content-Type: text/plain; charset=utf-8\n" |
| 17 | +"Content-Transfer-Encoding: 8bit\n" |
| 18 | +"Generated-By: Babel 2.17.0\n" |
| 19 | + |
| 20 | +#: ../../src/develop/example_psi.rst:2 |
| 21 | +msgid "Example: Build a PSI Protocol" |
| 22 | +msgstr "" |
| 23 | + |
| 24 | +#: ../../src/develop/example_psi.rst:4 |
| 25 | +msgid "" |
| 26 | +"This is an example of how to use Yacl's ECC api and link to build up a " |
| 27 | +"`PSI (Private Set Intersection) " |
| 28 | +"<https://en.wikipedia.org/wiki/Private_set_intersection>`_ protocol. The " |
| 29 | +"code of this example is avaliable at `link " |
| 30 | +"<https://github.com/secretflow/yacl/tree/main/examples/psi/cpp>`_." |
| 31 | +msgstr "" |
| 32 | + |
| 33 | +#: ../../src/develop/example_psi.rst:7 |
| 34 | +msgid "" |
| 35 | +"This example is merely designed for demonstration only, please do not use" |
| 36 | +" this example in production." |
| 37 | +msgstr "" |
| 38 | + |
| 39 | +#: ../../src/develop/example_psi.rst:10 |
| 40 | +msgid "Step 1: Understand ECDH-PSI" |
| 41 | +msgstr "" |
| 42 | + |
| 43 | +#: ../../src/develop/example_psi.rst:12 |
| 44 | +msgid "" |
| 45 | +"Before we start, the ECDH-PSI protocols are formally designed as the " |
| 46 | +"following, where lambda indicates the computational security parameter, " |
| 47 | +"and H() indicates a cryptographically secure (collision-free) hash " |
| 48 | +"function." |
| 49 | +msgstr "" |
| 50 | + |
| 51 | +#: ../../src/develop/example_psi.rst:-1 |
| 52 | +msgid "Alternative text" |
| 53 | +msgstr "" |
| 54 | + |
| 55 | +#: ../../src/develop/example_psi.rst:23 |
| 56 | +msgid "Step 2: Implement Protocol" |
| 57 | +msgstr "" |
| 58 | + |
| 59 | +#: ../../src/develop/example_psi.rst:25 |
| 60 | +msgid "" |
| 61 | +"We provide the implementation in the following codes. Note that it's " |
| 62 | +"almost always a good idea to separate the definitions and implementations" |
| 63 | +" into ``*.h`` and ``*.cc`` files." |
| 64 | +msgstr "" |
| 65 | + |
| 66 | +#: ../../src/develop/example_psi.rst:33 |
| 67 | +msgid "" |
| 68 | +"Besides the two files, you also need to write a `BUILD.bazel` file to " |
| 69 | +"tell `bazel` how to compile your files together." |
| 70 | +msgstr "" |
| 71 | + |
| 72 | +#: ../../src/develop/example_psi.rst:62 |
| 73 | +msgid "Step 2: Write and Run Tests" |
| 74 | +msgstr "" |
| 75 | + |
| 76 | +#: ../../src/develop/example_psi.rst:64 |
| 77 | +msgid "" |
| 78 | +"Also, we recommend all users to write unit tests for implementations. In " |
| 79 | +"oder to run the following tests, you can ``cd examples && bazel test " |
| 80 | +"//psi/cpp:ecdh_psi_test``." |
| 81 | +msgstr "" |
| 82 | + |
| 83 | +#: ../../src/develop/example_psi.rst:70 |
| 84 | +msgid "Step 3: Generate Executables and Run with CSV files" |
| 85 | +msgstr "" |
| 86 | + |
| 87 | +#: ../../src/develop/example_psi.rst:72 |
| 88 | +msgid "" |
| 89 | +"Also, alternatively you can build an executable for two users to actually" |
| 90 | +" run the PSI protocols with their private data. We show an example " |
| 91 | +"``main.cc`` file in the below." |
| 92 | +msgstr "" |
| 93 | + |
| 94 | +#: ../../src/develop/example_psi.rst:77 |
| 95 | +msgid "" |
| 96 | +"In order to compile, run ``bazel build //psi/cpp:ecdh_psi_main -c opt``. " |
| 97 | +"The ``-c opt`` flag tells the bazel build system to build a release (or, " |
| 98 | +"optimized) version of the executable." |
| 99 | +msgstr "" |
| 100 | + |
| 101 | +#: ../../src/develop/example_psi.rst:79 |
| 102 | +msgid "To run the exeutable, open two terminals in the same machine." |
| 103 | +msgstr "" |
| 104 | + |
| 105 | +#: ../../src/develop/example_psi.rst:83 |
| 106 | +msgid "Please make sure your machine's 10086 and 10087 ports are avaliable." |
| 107 | +msgstr "" |
| 108 | + |
| 109 | +#: ../../src/develop/example_psi.rst:85 |
| 110 | +msgid "In the first terminal, at yacl's project root, run" |
| 111 | +msgstr "" |
| 112 | + |
| 113 | +#: ../../src/develop/example_psi.rst:92 |
| 114 | +msgid "Then in the second terminal, at yacl's project root, run" |
| 115 | +msgstr "" |
| 116 | + |
0 commit comments