JosephStoneCellAI commited on
Commit
bd2ef3f
·
verified ·
1 Parent(s): 001b2a5

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. .cache/pip/http-v2/0/7/5/9/3/07593bb905dded4b84aacb1d96c1e64704669d6bab658dcaeab79c36 +0 -0
  2. .cache/pip/http-v2/0/7/5/9/3/07593bb905dded4b84aacb1d96c1e64704669d6bab658dcaeab79c36.body +0 -0
  3. .cache/pip/http-v2/0/7/9/4/c/0794c2d8b10039fc2223a490d5390beff73919e4237c72d1b1173a2e +0 -0
  4. .cache/pip/http-v2/0/7/9/4/c/0794c2d8b10039fc2223a490d5390beff73919e4237c72d1b1173a2e.body +0 -0
  5. .cache/pip/http-v2/0/c/b/f/f/0cbfff75291f05c16794a4e2c6c63bcb459c017712a63fb22148cd22 +0 -0
  6. .cache/pip/http-v2/1/8/b/9/4/18b94aea5c15e4b8aa3eb3b6f596667cf3ec18df1bcc6ce87a8fb5f5 +0 -0
  7. .cache/pip/http-v2/1/8/b/9/4/18b94aea5c15e4b8aa3eb3b6f596667cf3ec18df1bcc6ce87a8fb5f5.body +212 -0
  8. .cache/pip/http-v2/1/9/3/d/2/193d2b14cf4cd704ac983a718ec8edac2afad38c2e26f3f739d3d911 +0 -0
  9. .cache/pip/http-v2/1/9/3/d/2/193d2b14cf4cd704ac983a718ec8edac2afad38c2e26f3f739d3d911.body +0 -0
  10. .cache/pip/http-v2/1/b/6/1/2/1b612cccb113e0cdb88f86781dc6b1336a098b61f3f5adf287869672 +0 -0
  11. .cache/pip/http-v2/1/b/6/1/2/1b612cccb113e0cdb88f86781dc6b1336a098b61f3f5adf287869672.body +150 -0
  12. .cache/pip/http-v2/1/d/5/6/3/1d563ba9163a5740203eb49569f4a3cdce2455efdbf68b7a0e4df760 +0 -0
  13. .cache/pip/http-v2/1/d/5/6/3/1d563ba9163a5740203eb49569f4a3cdce2455efdbf68b7a0e4df760.body +0 -0
  14. .cache/pip/http-v2/e/1/5/a/c/e15ac2c24b33de92dedfc96b6b9f27aa5bd1ea3dba163e9c5eb1fb24 +0 -0
  15. .cache/pip/http-v2/e/1/a/1/0/e1a102a58d5f97b4d2a7ffd62157f43e68a5808f81e4779f2eb95e89 +0 -0
  16. .cache/pip/http-v2/e/3/e/0/6/e3e06c4cfe0e455836f37e8eeb3bc26ed4be2aeb1e1c72135893c538 +0 -0
  17. .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/Cargo.toml.orig +73 -0
  18. .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/LICENSE +65 -0
  19. .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/Makefile +11 -0
  20. .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/README.md +323 -0
.cache/pip/http-v2/0/7/5/9/3/07593bb905dded4b84aacb1d96c1e64704669d6bab658dcaeab79c36 ADDED
Binary file (1.85 kB). View file
 
.cache/pip/http-v2/0/7/5/9/3/07593bb905dded4b84aacb1d96c1e64704669d6bab658dcaeab79c36.body ADDED
Binary file (2.46 kB). View file
 
.cache/pip/http-v2/0/7/9/4/c/0794c2d8b10039fc2223a490d5390beff73919e4237c72d1b1173a2e ADDED
Binary file (1.18 kB). View file
 
.cache/pip/http-v2/0/7/9/4/c/0794c2d8b10039fc2223a490d5390beff73919e4237c72d1b1173a2e.body ADDED
Binary file (18.7 kB). View file
 
.cache/pip/http-v2/0/c/b/f/f/0cbfff75291f05c16794a4e2c6c63bcb459c017712a63fb22148cd22 ADDED
Binary file (1.15 kB). View file
 
.cache/pip/http-v2/1/8/b/9/4/18b94aea5c15e4b8aa3eb3b6f596667cf3ec18df1bcc6ce87a8fb5f5 ADDED
Binary file (1.23 kB). View file
 
.cache/pip/http-v2/1/8/b/9/4/18b94aea5c15e4b8aa3eb3b6f596667cf3ec18df1bcc6ce87a8fb5f5.body ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: pytest
3
+ Version: 9.0.2
4
+ Summary: pytest: simple powerful testing with Python
5
+ Author: Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin, Others (See AUTHORS)
6
+ License-Expression: MIT
7
+ Project-URL: Changelog, https://docs.pytest.org/en/stable/changelog.html
8
+ Project-URL: Contact, https://docs.pytest.org/en/stable/contact.html
9
+ Project-URL: Funding, https://docs.pytest.org/en/stable/sponsor.html
10
+ Project-URL: Homepage, https://docs.pytest.org/en/latest/
11
+ Project-URL: Source, https://github.com/pytest-dev/pytest
12
+ Project-URL: Tracker, https://github.com/pytest-dev/pytest/issues
13
+ Keywords: test,unittest
14
+ Classifier: Development Status :: 6 - Mature
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX
19
+ Classifier: Operating System :: Unix
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Software Development :: Libraries
27
+ Classifier: Topic :: Software Development :: Testing
28
+ Classifier: Topic :: Utilities
29
+ Requires-Python: >=3.10
30
+ Description-Content-Type: text/x-rst
31
+ License-File: LICENSE
32
+ Requires-Dist: colorama>=0.4; sys_platform == "win32"
33
+ Requires-Dist: exceptiongroup>=1; python_version < "3.11"
34
+ Requires-Dist: iniconfig>=1.0.1
35
+ Requires-Dist: packaging>=22
36
+ Requires-Dist: pluggy<2,>=1.5
37
+ Requires-Dist: pygments>=2.7.2
38
+ Requires-Dist: tomli>=1; python_version < "3.11"
39
+ Provides-Extra: dev
40
+ Requires-Dist: argcomplete; extra == "dev"
41
+ Requires-Dist: attrs>=19.2; extra == "dev"
42
+ Requires-Dist: hypothesis>=3.56; extra == "dev"
43
+ Requires-Dist: mock; extra == "dev"
44
+ Requires-Dist: requests; extra == "dev"
45
+ Requires-Dist: setuptools; extra == "dev"
46
+ Requires-Dist: xmlschema; extra == "dev"
47
+ Dynamic: license-file
48
+
49
+ .. image:: https://github.com/pytest-dev/pytest/raw/main/doc/en/img/pytest_logo_curves.svg
50
+ :target: https://docs.pytest.org/en/stable/
51
+ :align: center
52
+ :height: 200
53
+ :alt: pytest
54
+
55
+
56
+ ------
57
+
58
+ .. image:: https://img.shields.io/pypi/v/pytest.svg
59
+ :target: https://pypi.org/project/pytest/
60
+
61
+ .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
62
+ :target: https://anaconda.org/conda-forge/pytest
63
+
64
+ .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
65
+ :target: https://pypi.org/project/pytest/
66
+
67
+ .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/main/graph/badge.svg
68
+ :target: https://codecov.io/gh/pytest-dev/pytest
69
+ :alt: Code coverage Status
70
+
71
+ .. image:: https://github.com/pytest-dev/pytest/actions/workflows/test.yml/badge.svg
72
+ :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Atest
73
+
74
+ .. image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg
75
+ :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main
76
+ :alt: pre-commit.ci status
77
+
78
+ .. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
79
+ :target: https://www.codetriage.com/pytest-dev/pytest
80
+
81
+ .. image:: https://readthedocs.org/projects/pytest/badge/?version=latest
82
+ :target: https://pytest.readthedocs.io/en/latest/?badge=latest
83
+ :alt: Documentation Status
84
+
85
+ .. image:: https://img.shields.io/badge/Discord-pytest--dev-blue
86
+ :target: https://discord.com/invite/pytest-dev
87
+ :alt: Discord
88
+
89
+ .. image:: https://img.shields.io/badge/Libera%20chat-%23pytest-orange
90
+ :target: https://web.libera.chat/#pytest
91
+ :alt: Libera chat
92
+
93
+
94
+ The ``pytest`` framework makes it easy to write small tests, yet
95
+ scales to support complex functional testing for applications and libraries.
96
+
97
+ An example of a simple test:
98
+
99
+ .. code-block:: python
100
+
101
+ # content of test_sample.py
102
+ def inc(x):
103
+ return x + 1
104
+
105
+
106
+ def test_answer():
107
+ assert inc(3) == 5
108
+
109
+
110
+ To execute it::
111
+
112
+ $ pytest
113
+ ============================= test session starts =============================
114
+ collected 1 items
115
+
116
+ test_sample.py F
117
+
118
+ ================================== FAILURES ===================================
119
+ _________________________________ test_answer _________________________________
120
+
121
+ def test_answer():
122
+ > assert inc(3) == 5
123
+ E assert 4 == 5
124
+ E + where 4 = inc(3)
125
+
126
+ test_sample.py:5: AssertionError
127
+ ========================== 1 failed in 0.04 seconds ===========================
128
+
129
+
130
+ Thanks to ``pytest``'s detailed assertion introspection, you can simply use plain ``assert`` statements. See `getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>`_ for more examples.
131
+
132
+
133
+ Features
134
+ --------
135
+
136
+ - Detailed info on failing `assert statements <https://docs.pytest.org/en/stable/how-to/assert.html>`_ (no need to remember ``self.assert*`` names)
137
+
138
+ - `Auto-discovery
139
+ <https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery>`_
140
+ of test modules and functions
141
+
142
+ - `Modular fixtures <https://docs.pytest.org/en/stable/explanation/fixtures.html>`_ for
143
+ managing small or parametrized long-lived test resources
144
+
145
+ - Can run `unittest <https://docs.pytest.org/en/stable/how-to/unittest.html>`_ (or trial)
146
+ test suites out of the box
147
+
148
+ - Python 3.10+ or PyPy3
149
+
150
+ - Rich plugin architecture, with over 1300+ `external plugins <https://docs.pytest.org/en/latest/reference/plugin_list.html>`_ and thriving community
151
+
152
+
153
+ Documentation
154
+ -------------
155
+
156
+ For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.
157
+
158
+
159
+ Bugs/Requests
160
+ -------------
161
+
162
+ Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
163
+
164
+
165
+ Changelog
166
+ ---------
167
+
168
+ Consult the `Changelog <https://docs.pytest.org/en/stable/changelog.html>`__ page for fixes and enhancements of each version.
169
+
170
+
171
+ Support pytest
172
+ --------------
173
+
174
+ `Open Collective`_ is an online funding platform for open and transparent communities.
175
+ It provides tools to raise money and share your finances in full transparency.
176
+
177
+ It is the platform of choice for individuals and companies that want to make one-time or
178
+ monthly donations directly to the project.
179
+
180
+ See more details in the `pytest collective`_.
181
+
182
+ .. _Open Collective: https://opencollective.com
183
+ .. _pytest collective: https://opencollective.com/pytest
184
+
185
+
186
+ pytest for enterprise
187
+ ---------------------
188
+
189
+ Available as part of the Tidelift Subscription.
190
+
191
+ The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
192
+ maintenance for the open source dependencies you use to build your applications.
193
+ Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
194
+
195
+ `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_
196
+
197
+ Security
198
+ ^^^^^^^^
199
+
200
+ pytest has never been associated with a security vulnerability, but in any case, to report a
201
+ security vulnerability please use the `Tidelift security contact <https://tidelift.com/security>`_.
202
+ Tidelift will coordinate the fix and disclosure.
203
+
204
+
205
+ License
206
+ -------
207
+
208
+ Copyright Holger Krekel and others, 2004.
209
+
210
+ Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
211
+
212
+ .. _`MIT`: https://github.com/pytest-dev/pytest/blob/main/LICENSE
.cache/pip/http-v2/1/9/3/d/2/193d2b14cf4cd704ac983a718ec8edac2afad38c2e26f3f739d3d911 ADDED
Binary file (1.78 kB). View file
 
.cache/pip/http-v2/1/9/3/d/2/193d2b14cf4cd704ac983a718ec8edac2afad38c2e26f3f739d3d911.body ADDED
Binary file (46.1 kB). View file
 
.cache/pip/http-v2/1/b/6/1/2/1b612cccb113e0cdb88f86781dc6b1336a098b61f3f5adf287869672 ADDED
Binary file (1.2 kB). View file
 
.cache/pip/http-v2/1/b/6/1/2/1b612cccb113e0cdb88f86781dc6b1336a098b61f3f5adf287869672.body ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: pyproject-metadata
3
+ Version: 0.11.0
4
+ Summary: PEP 621 metadata parsing
5
+ Author-email: Filipe Laíns <lains@riseup.net>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ License-Expression: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ License-File: LICENSE
19
+ Requires-Dist: packaging>=23.2
20
+ Project-URL: changelog, https://pep621.readthedocs.io/en/stable/changelog.html
21
+ Project-URL: homepage, https://github.com/pypa/pyproject-metadata
22
+
23
+ # pyproject-metadata
24
+
25
+ [![pre-commit.ci status][pre-commit-badge]][pre-commit-link]
26
+ [![checks][gha-checks-badge]][gha-checks-link]
27
+ [![tests][gha-tests-badge]][gha-tests-link]
28
+ [![codecov][codecov-badge]][codecov-link]
29
+ [![Documentation Status][rtd-badge]][rtd-link]
30
+ [![PyPI version][pypi-version]][pypi-link]
31
+
32
+ > Dataclass for pyproject.toml `[project]` metadata with support for \[core >
33
+ > metadata\] generation
34
+
35
+ This project does not implement the parsing of `pyproject.toml` containing
36
+ pyproject.toml `[project]` metadata.
37
+
38
+ Instead, given a Python data structure representing pyproject.toml `[project]`
39
+ metadata (already parsed), it will validate this input and generate a PEP
40
+ 643-compliant metadata file (e.g. `PKG-INFO`).
41
+
42
+ ## Usage
43
+
44
+ After
45
+ [installing `pyproject-metadata`](https://pypi.org/project/pyproject-metadata/),
46
+ you can use it as a library in your scripts and programs:
47
+
48
+ ```python
49
+ from pyproject_metadata import StandardMetadata
50
+
51
+ parsed_pyproject = {...} # you can use parsers like `tomli` to obtain this dict
52
+ metadata = StandardMetadata.from_pyproject(parsed_pyproject, allow_extra_keys=False)
53
+ # Same fields as defined in pyproject.toml [project] metadata
54
+ print(metadata.entrypoints)
55
+
56
+ pkg_info = metadata.as_rfc822()
57
+ print(str(pkg_info)) # core metadata
58
+ ```
59
+
60
+ ## SPDX licenses (METADATA 2.4+)
61
+
62
+ If `project.license` is a string or `project.license-files` is present, then
63
+ METADATA 2.4+ will be used. A user is expected to validate and normalize
64
+ `metadata.license` with an SPDX validation tool, such as the one being added to
65
+ `packaging`. Add something like this (requires packaging 24.2+):
66
+
67
+ ```python
68
+ if isinstance(metadata.license, str):
69
+ metadata.license = packaging.licenses.canonicalize_license_expression(
70
+ metadata.license
71
+ )
72
+ ```
73
+
74
+ A backend is also expected to copy entries from `project.license_files`, which
75
+ are paths relative to the project directory, into the `dist-info/licenses`
76
+ folder, preserving the original source structure.
77
+
78
+ ## Dynamic Metadata (METADATA 2.2+)
79
+
80
+ Pyproject-metadata supports dynamic metadata. To use it, specify your METADATA
81
+ fields in `dynamic_metadata`. If you want to convert `pyproject.toml` field
82
+ names to METADATA field(s), use
83
+ `pyproject_metadata.pyproject_to_metadata("field-name")`, which will return a
84
+ frozenset of metadata names that are touched by that field.
85
+
86
+ ## Adding extra fields
87
+
88
+ You can add extra fields to the Message returned by `to_rfc822()`, as long as
89
+ they are valid metadata entries.
90
+
91
+ ## Collecting multiple errors
92
+
93
+ You can use the `all_errors` argument to `from_pyproject` to show all errors in
94
+ the metadata parse at once, instead of raising an exception on the first one.
95
+ The exception type will be `pyproject_metadata.errors.ExceptionGroup` (which is
96
+ just `ExceptionGroup` on Python 3.11+).
97
+
98
+ ## Validating extra fields
99
+
100
+ By default, a warning (`pyproject_metadata.errors.ExtraKeyWarning`) will be
101
+ issued for extra fields at the project table. You can pass `allow_extra_keys=`
102
+ to either avoid the check (`True`) or hard error (`False`). If you want to
103
+ detect extra keys, you can get them with `pyproject_metadata.extra_top_level`
104
+ and `pyproject_metadata.extra_build_system`. It is recommended that build
105
+ systems only warn on failures with these extra keys.
106
+
107
+ ## Validating classifiers
108
+
109
+ If you want to validate classifiers, then install the `trove_classifiers`
110
+ library (the canonical source for classifiers), and run:
111
+
112
+ ```python
113
+ import trove_classifiers
114
+
115
+ metadata_classifieres = {
116
+ c for c in metadata.classifiers if not c.startswith("Private ::")
117
+ }
118
+ invalid_classifiers = set(metadata.classifiers) - trove_classifiers.classifiers
119
+
120
+ # Also the deprecated dict if you want it
121
+ dep_names = set(metadata.classifiers) & set(trove_classifiers.deprecated_classifiers)
122
+ deprecated_classifiers = {
123
+ k: trove_classifiers.deprecated_classifiers[k] for k in dep_names
124
+ }
125
+ ```
126
+
127
+ If you are writing a build backend, you should not validate classifiers with a
128
+ `Private ::` prefix; these are only restricted for upload to PyPI (such as
129
+ `Private :: Do Not Upload`).
130
+
131
+ Since classifiers are a moving target, it is probably best for build backends
132
+ (which may be shipped by third party distributors like Debian or Fedora) to
133
+ either ignore or have optional classifier validation.
134
+
135
+ <!-- prettier-ignore-start -->
136
+ [core metadata]: https://packaging.python.org/specifications/core-metadata/
137
+ [gha-checks-link]: https://github.com/pypa/pyproject-metadata/actions/workflows/checks.yml
138
+ [gha-checks-badge]: https://github.com/pypa/pyproject-metadata/actions/workflows/checks.yml/badge.svg
139
+ [gha-tests-link]: https://github.com/pypa/pyproject-metadata/actions/workflows/tests.yml
140
+ [gha-tests-badge]: https://github.com/pypa/pyproject-metadata/actions/workflows/tests.yml/badge.svg
141
+ [pre-commit-link]: https://results.pre-commit.ci/latest/github/pypa/pyproject-metadata/main
142
+ [pre-commit-badge]: https://results.pre-commit.ci/badge/github/pypa/pyproject-metadata/main.svg
143
+ [codecov-link]: https://codecov.io/gh/pypa/pyproject-metadata
144
+ [codecov-badge]: https://codecov.io/gh/pypa/pyproject-metadata/branch/main/graph/badge.svg?token=9chBjS1lch
145
+ [pypi-link]: https://pypi.org/project/pyproject-metadata/
146
+ [pypi-version]: https://badge.fury.io/py/pyproject-metadata.svg
147
+ [rtd-link]: https://pep621.readthedocs.io/en/latest/?badge=latest
148
+ [rtd-badge]: https://readthedocs.org/projects/pep621/badge/?version=latest
149
+ <!-- prettier-ignore-end -->
150
+
.cache/pip/http-v2/1/d/5/6/3/1d563ba9163a5740203eb49569f4a3cdce2455efdbf68b7a0e4df760 ADDED
Binary file (1.16 kB). View file
 
.cache/pip/http-v2/1/d/5/6/3/1d563ba9163a5740203eb49569f4a3cdce2455efdbf68b7a0e4df760.body ADDED
Binary file (76.1 kB). View file
 
.cache/pip/http-v2/e/1/5/a/c/e15ac2c24b33de92dedfc96b6b9f27aa5bd1ea3dba163e9c5eb1fb24 ADDED
Binary file (1.15 kB). View file
 
.cache/pip/http-v2/e/1/a/1/0/e1a102a58d5f97b4d2a7ffd62157f43e68a5808f81e4779f2eb95e89 ADDED
Binary file (1.85 kB). View file
 
.cache/pip/http-v2/e/3/e/0/6/e3e06c4cfe0e455836f37e8eeb3bc26ed4be2aeb1e1c72135893c538 ADDED
Binary file (1.78 kB). View file
 
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/Cargo.toml.orig ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [package]
2
+ name = "curve25519-dalek"
3
+ # Before incrementing:
4
+ # - update CHANGELOG
5
+ # - update README if required by semver
6
+ # - if README was updated, also update module documentation in src/lib.rs
7
+ version = "4.1.3"
8
+ edition = "2021"
9
+ rust-version = "1.60.0"
10
+ authors = ["Isis Lovecruft <isis@patternsinthevoid.net>",
11
+ "Henry de Valence <hdevalence@hdevalence.ca>"]
12
+ readme = "README.md"
13
+ license = "BSD-3-Clause"
14
+ repository = "https://github.com/dalek-cryptography/curve25519-dalek/tree/main/curve25519-dalek"
15
+ homepage = "https://github.com/dalek-cryptography/curve25519-dalek"
16
+ documentation = "https://docs.rs/curve25519-dalek"
17
+ categories = ["cryptography", "no-std"]
18
+ keywords = ["cryptography", "crypto", "ristretto", "curve25519", "ristretto255"]
19
+ description = "A pure-Rust implementation of group operations on ristretto255 and Curve25519"
20
+ exclude = [
21
+ "**/.gitignore",
22
+ ".gitignore",
23
+ ]
24
+
25
+ [package.metadata.docs.rs]
26
+ rustdoc-args = [
27
+ "--html-in-header", "docs/assets/rustdoc-include-katex-header.html",
28
+ "--cfg", "docsrs",
29
+ ]
30
+ features = ["serde", "rand_core", "digest", "legacy_compatibility", "group-bits"]
31
+
32
+ [dev-dependencies]
33
+ sha2 = { version = "0.10", default-features = false }
34
+ bincode = "1"
35
+ criterion = { version = "0.5", features = ["html_reports"] }
36
+ hex = "0.4.2"
37
+ rand = "0.8"
38
+ rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
39
+
40
+ [build-dependencies]
41
+ rustc_version = "0.4.0"
42
+
43
+ [[bench]]
44
+ name = "dalek_benchmarks"
45
+ harness = false
46
+ required-features = ["alloc", "rand_core"]
47
+
48
+ [dependencies]
49
+ cfg-if = "1"
50
+ ff = { version = "0.13", default-features = false, optional = true }
51
+ group = { version = "0.13", default-features = false, optional = true }
52
+ rand_core = { version = "0.6.4", default-features = false, optional = true }
53
+ digest = { version = "0.10", default-features = false, optional = true }
54
+ subtle = { version = "2.3.0", default-features = false }
55
+ serde = { version = "1.0", default-features = false, optional = true, features = ["derive"] }
56
+ zeroize = { version = "1", default-features = false, optional = true }
57
+
58
+ [target.'cfg(target_arch = "x86_64")'.dependencies]
59
+ cpufeatures = "0.2.6"
60
+
61
+ [target.'cfg(curve25519_dalek_backend = "fiat")'.dependencies]
62
+ fiat-crypto = { version = "0.2.1", default-features = false }
63
+
64
+ [features]
65
+ default = ["alloc", "precomputed-tables", "zeroize"]
66
+ alloc = ["zeroize?/alloc"]
67
+ precomputed-tables = []
68
+ legacy_compatibility = []
69
+ group = ["dep:group", "rand_core"]
70
+ group-bits = ["group", "ff/bits"]
71
+
72
+ [target.'cfg(all(not(curve25519_dalek_backend = "fiat"), not(curve25519_dalek_backend = "serial"), target_arch = "x86_64"))'.dependencies]
73
+ curve25519-dalek-derive = { version = "0.1", path = "../curve25519-dalek-derive" }
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/LICENSE ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2016-2021 isis agora lovecruft. All rights reserved.
2
+ Copyright (c) 2016-2021 Henry de Valence. All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright
12
+ notice, this list of conditions and the following disclaimer in the
13
+ documentation and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
25
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ ========================================================================
32
+
33
+ Portions of curve25519-dalek were originally derived from Adam Langley's
34
+ Go ed25519 implementation, found at <https://github.com/agl/ed25519/>,
35
+ under the following licence:
36
+
37
+ ========================================================================
38
+
39
+ Copyright (c) 2012 The Go Authors. All rights reserved.
40
+
41
+ Redistribution and use in source and binary forms, with or without
42
+ modification, are permitted provided that the following conditions are
43
+ met:
44
+
45
+ * Redistributions of source code must retain the above copyright
46
+ notice, this list of conditions and the following disclaimer.
47
+ * Redistributions in binary form must reproduce the above
48
+ copyright notice, this list of conditions and the following disclaimer
49
+ in the documentation and/or other materials provided with the
50
+ distribution.
51
+ * Neither the name of Google Inc. nor the names of its
52
+ contributors may be used to endorse or promote products derived from
53
+ this software without specific prior written permission.
54
+
55
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
56
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
57
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
58
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
59
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
60
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
61
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
62
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
63
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
64
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
65
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/Makefile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FEATURES := serde rand_core digest legacy_compatibility
2
+
3
+ export RUSTDOCFLAGS := \
4
+ --cfg docsrs \
5
+ --html-in-header docs/assets/rustdoc-include-katex-header.html
6
+
7
+ doc:
8
+ cargo +nightly rustdoc --features "$(FEATURES)"
9
+
10
+ doc-internal:
11
+ cargo +nightly rustdoc --features "$(FEATURES)" -- --document-private-items
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/curve25519-dalek-4.1.3/README.md ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # curve25519-dalek [![](https://buildstats.info/crate/curve25519-dalek)](https://crates.io/crates/curve25519-dalek) [![](https://img.shields.io/docsrs/curve25519-dalek)](https://docs.rs/curve25519-dalek) [![CI](https://github.com/dalek-cryptography/curve25519-dalek/actions/workflows/curve25519-dalek.yml/badge.svg?branch=main)](https://github.com/dalek-cryptography/curve25519-dalek/actions/workflows/curve25519-dalek.yml)
3
+
4
+ <p align="center">
5
+ <img
6
+ alt="dalek-cryptography logo: a dalek with edwards curves as sparkles coming out of its radar-schnozzley blaster thingies"
7
+ width="200px"
8
+ src="https://cdn.jsdelivr.net/gh/dalek-cryptography/curve25519-dalek/docs/assets/dalek-logo-clear.png"/>
9
+ </p>
10
+
11
+ **A pure-Rust implementation of group operations on Ristretto and Curve25519.**
12
+
13
+ `curve25519-dalek` is a library providing group operations on the Edwards and
14
+ Montgomery forms of Curve25519, and on the prime-order Ristretto group.
15
+
16
+ `curve25519-dalek` is not intended to provide implementations of any particular
17
+ crypto protocol. Rather, implementations of those protocols (such as
18
+ [`x25519-dalek`][x25519-dalek] and [`ed25519-dalek`][ed25519-dalek]) should use
19
+ `curve25519-dalek` as a library.
20
+
21
+ `curve25519-dalek` is intended to provide a clean and safe _mid-level_ API for use
22
+ implementing a wide range of ECC-based crypto protocols, such as key agreement,
23
+ signatures, anonymous credentials, rangeproofs, and zero-knowledge proof
24
+ systems.
25
+
26
+ In particular, `curve25519-dalek` implements Ristretto, which constructs a
27
+ prime-order group from a non-prime-order Edwards curve. This provides the
28
+ speed and safety benefits of Edwards curve arithmetic, without the pitfalls of
29
+ cofactor-related abstraction mismatches.
30
+
31
+ # Use
32
+
33
+ ## Stable
34
+
35
+ To import `curve25519-dalek`, add the following to the dependencies section of
36
+ your project's `Cargo.toml`:
37
+ ```toml
38
+ curve25519-dalek = "4"
39
+ ```
40
+
41
+ If opting into [SemVer-exempted features](#public-api-semver-exemptions) a range
42
+ can be used to scope the tested compatible version range e.g.:
43
+ ```toml
44
+ curve25519-dalek = ">= 4.0, < 4.2"
45
+ ```
46
+
47
+ ## Feature Flags
48
+
49
+ | Feature | Default? | Description |
50
+ | :--- | :---: | :--- |
51
+ | `alloc` | ✓ | Enables Edwards and Ristretto multiscalar multiplication, batch scalar inversion, and batch Ristretto double-and-compress. Also enables `zeroize`. |
52
+ | `zeroize` | ✓ | Enables [`Zeroize`][zeroize-trait] for all scalar and curve point types. |
53
+ | `precomputed-tables` | ✓ | Includes precomputed basepoint multiplication tables. This speeds up `EdwardsPoint::mul_base` and `RistrettoPoint::mul_base` by ~4x, at the cost of ~30KB added to the code size. |
54
+ | `rand_core` | | Enables `Scalar::random` and `RistrettoPoint::random`. This is an optional dependency whose version is not subject to SemVer. See [below](#public-api-semver-exemptions) for more details. |
55
+ | `digest` | | Enables `RistrettoPoint::{from_hash, hash_from_bytes}` and `Scalar::{from_hash, hash_from_bytes}`. This is an optional dependency whose version is not subject to SemVer. See [below](#public-api-semver-exemptions) for more details. |
56
+ | `serde` | | Enables `serde` serialization/deserialization for all the point and scalar types. |
57
+ | `legacy_compatibility`| | Enables `Scalar::from_bits`, which allows the user to build unreduced scalars whose arithmetic is broken. Do not use this unless you know what you're doing. |
58
+ | `group` | | Enables external `group` and `ff` crate traits |
59
+
60
+ To disable the default features when using `curve25519-dalek` as a dependency,
61
+ add `default-features = false` to the dependency in your `Cargo.toml`. To
62
+ disable it when running `cargo`, add the `--no-default-features` CLI flag.
63
+
64
+ ## Major Version API Changes
65
+
66
+ Breaking changes for each major version release can be found in
67
+ [`CHANGELOG.md`](CHANGELOG.md), under the "Breaking changes" subheader. The
68
+ latest breaking changes in high level are below:
69
+
70
+ ### Breaking changes in 4.0.0
71
+
72
+ * Update the MSRV from 1.41 to 1.60
73
+ * Provide SemVer policy
74
+ * Make `digest` and `rand_core` optional features
75
+ * Remove `std` and `nightly` features
76
+ * Replace backend selection - See [CHANGELOG.md](CHANGELOG.md) and [backends](#backends)
77
+ * Replace methods `Scalar::{zero, one}` with constants `Scalar::{ZERO, ONE}`
78
+ * `Scalar::from_canonical_bytes` now returns `CtOption`
79
+ * `Scalar::is_canonical` now returns `Choice`
80
+ * Remove `Scalar::from_bytes_clamped` and `Scalar::reduce`
81
+ * Deprecate and feature-gate `Scalar::from_bits` behind `legacy_compatibility`
82
+ * Deprecate `EdwardsPoint::hash_from_bytes` and rename it
83
+ `EdwardsPoint::nonspec_map_to_curve`
84
+ * Require including a new trait, `use curve25519_dalek::traits::BasepointTable`
85
+ whenever using `EdwardsBasepointTable` or `RistrettoBasepointTable`
86
+
87
+ This release also does a lot of dependency updates and relaxations to unblock upstream build issues.
88
+
89
+ # Backends
90
+
91
+ Curve arithmetic is implemented and used by one of the following backends:
92
+
93
+ | Backend | Selection | Implementation | Bits / Word sizes |
94
+ | :--- | :--- | :--- | :--- |
95
+ | `serial` | Automatic | An optimized, non-parllel implementation | `32` and `64` |
96
+ | `fiat` | Manual | Formally verified field arithmetic from [fiat-crypto] | `32` and `64` |
97
+ | `simd` | Automatic | Intel AVX2 / AVX512 IFMA accelerated backend | `64` only |
98
+
99
+ At runtime, `curve25519-dalek` selects an arithmetic backend from the set of backends it was compiled to support. For Intel x86-64 targets, unless otherwise specified, it will build itself with `simd` support, and default to `serial` at runtime if the appropriate CPU features aren't detected. See [SIMD backend] for more details.
100
+
101
+ In the future, `simd` backend may be extended to cover more instruction sets. This change will be non-breaking as this is considered as implementation detail.
102
+
103
+ ## Manual Backend Override
104
+
105
+ You can force the crate to compile with specific backend support, e.g., `serial` for x86-64 targets to save code size, or `fiat` to force the runtime to use verified code. To do this, set the environment variable:
106
+ ```sh
107
+ RUSTFLAGS='--cfg curve25519_dalek_backend="BACKEND"'
108
+ ```
109
+ Equivalently, you can write to
110
+ `~/.cargo/config`:
111
+ ```toml
112
+ [build]
113
+ rustflags = ['--cfg=curve25519_dalek_backend="BACKEND"']
114
+ ```
115
+ More info [here](https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags).
116
+
117
+ Note for contributors: The target backends are not entirely independent of each
118
+ other. The [SIMD backend] directly depends on parts of the serial backend to
119
+ function.
120
+
121
+ ## Bits / Word size
122
+
123
+ `curve25519-dalek` will automatically choose the word size for the `fiat` and
124
+ `serial` backends, based on the build target.
125
+ For example, building for a 64-bit machine, the default 64 bit word size is
126
+ automatically chosen when either the `serial` or `fiat` backend is selected.
127
+
128
+ In some targets it might be required to override the word size for better
129
+ performance.
130
+ Backend word size can be overridden for `serial` and `fiat` by setting the
131
+ environment variable:
132
+ ```sh
133
+ RUSTFLAGS='--cfg curve25519_dalek_bits="SIZE"'
134
+ ```
135
+ `SIZE` is `32` or `64`. As in the above section, this can also be placed
136
+ in `~/.cargo/config`.
137
+
138
+ Note: The [SIMD backend] requires a word size of 64 bits. Attempting to set bits=32 and backend=`simd` will yield a compile error.
139
+
140
+ ### Cross-compilation
141
+
142
+ Because backend selection is done by target, cross-compiling will select the correct word size automatically. For example, if a x86-64 Linux machine runs the following commands, `curve25519-dalek` will be compiled with the 32-bit `serial` backend.
143
+ ```console
144
+ $ sudo apt install gcc-multilib # (or whatever package manager you use)
145
+ $ rustup target add i686-unknown-linux-gnu
146
+ $ cargo build --target i686-unknown-linux-gnu
147
+ ```
148
+
149
+ ## SIMD backend
150
+
151
+ The specific SIMD backend (AVX512 / AVX2 / `serial` default) is selected automatically at runtime, depending on the currently available CPU features, and whether Rust nightly is being used for compilation. The precise conditions are specified below.
152
+
153
+ For a given CPU feature, you can also specify an appropriate `-C target_feature` to build a binary which assumes the required SIMD instructions are always available. Don't do this if you don't have a good reason.
154
+
155
+ | Backend | `RUSTFLAGS` | Requires nightly? |
156
+ | :--- | :--- | :--- |
157
+ | avx2 | `-C target_feature=+avx2` | no |
158
+ | avx512 | `-C target_feature=+avx512ifma,+avx512vl` | yes |
159
+
160
+ If compiled on a non-nightly compiler, `curve25519-dalek` will not include AVX512 code, and therefore will never select it at runtime.
161
+
162
+ # Documentation
163
+
164
+ The semver-stable, public-facing `curve25519-dalek` API is documented [here][docs].
165
+
166
+ ## Building Docs Locally
167
+
168
+ The `curve25519-dalek` documentation requires a custom HTML header to include
169
+ KaTeX for math support. Unfortunately `cargo doc` does not currently support
170
+ this, but docs can be built using
171
+ ```sh
172
+ make doc
173
+ ```
174
+ for regular docs, and
175
+ ```sh
176
+ make doc-internal
177
+ ```
178
+ for docs that include private items.
179
+
180
+ # Maintenance Policies
181
+
182
+ All on-by-default features of this library are covered by
183
+ [semantic versioning][semver] (SemVer). SemVer exemptions are outlined below
184
+ for MSRV and public API.
185
+
186
+ ## Minimum Supported Rust Version
187
+
188
+ | Releases | MSRV |
189
+ | :--- |:-------|
190
+ | 4.x | 1.60.0 |
191
+ | 3.x | 1.41.0 |
192
+
193
+ From 4.x and on, MSRV changes will be accompanied by a minor version bump.
194
+
195
+ ## Public API SemVer Exemptions
196
+
197
+ Breaking changes to SemVer-exempted components affecting the public API will be accompanied by
198
+ _some_ version bump. Below are the specific policies:
199
+
200
+ | Releases | Public API Component(s) | Policy |
201
+ | :--- | :--- | :--- |
202
+ | 4.x | Dependencies `group`, `digest` and `rand_core` | Minor SemVer bump |
203
+
204
+ # Safety
205
+
206
+ The `curve25519-dalek` types are designed to make illegal states
207
+ unrepresentable. For example, any instance of an `EdwardsPoint` is
208
+ guaranteed to hold a point on the Edwards curve, and any instance of a
209
+ `RistrettoPoint` is guaranteed to hold a valid point in the Ristretto
210
+ group.
211
+
212
+ All operations are implemented using constant-time logic (no
213
+ secret-dependent branches, no secret-dependent memory accesses),
214
+ unless specifically marked as being variable-time code.
215
+ We believe that our constant-time logic is lowered to constant-time
216
+ assembly, at least on `x86_64` targets.
217
+
218
+ As an additional guard against possible future compiler optimizations,
219
+ the `subtle` crate places an optimization barrier before every
220
+ conditional move or assignment. More details can be found in [the
221
+ documentation for the `subtle` crate][subtle_doc].
222
+
223
+ Some functionality (e.g., multiscalar multiplication or batch
224
+ inversion) requires heap allocation for temporary buffers. All
225
+ heap-allocated buffers of potentially secret data are explicitly
226
+ zeroed before release.
227
+
228
+ However, we do not attempt to zero stack data, for two reasons.
229
+ First, it's not possible to do so correctly: we don't have control
230
+ over stack allocations, so there's no way to know how much data to
231
+ wipe. Second, because `curve25519-dalek` provides a mid-level API,
232
+ the correct place to start zeroing stack data is likely not at the
233
+ entrypoints of `curve25519-dalek` functions, but at the entrypoints of
234
+ functions in other crates.
235
+
236
+ The implementation is memory-safe, and contains no significant
237
+ `unsafe` code. The SIMD backend uses `unsafe` internally to call SIMD
238
+ intrinsics. These are marked `unsafe` only because invoking them on an
239
+ inappropriate CPU would cause `SIGILL`, but the entire backend is only
240
+ invoked when the appropriate CPU features are detected at runtime, or
241
+ when the whole program is compiled with the appropriate `target_feature`s.
242
+
243
+ # Performance
244
+
245
+ Benchmarks are run using [`criterion.rs`][criterion]:
246
+
247
+ ```sh
248
+ cargo bench --features "rand_core"
249
+ export RUSTFLAGS='-C target_cpu=native'
250
+ cargo +nightly bench --features "rand_core"
251
+ ```
252
+
253
+ Performance is a secondary goal behind correctness, safety, and
254
+ clarity, but we aim to be competitive with other implementations.
255
+
256
+ # FFI
257
+
258
+ Unfortunately, we have no plans to add FFI to `curve25519-dalek` directly. The
259
+ reason is that we use Rust features to provide an API that maintains safety
260
+ invariants, which are not possible to maintain across an FFI boundary. For
261
+ instance, as described in the _Safety_ section above, invalid points are
262
+ impossible to construct, and this would not be the case if we exposed point
263
+ operations over FFI.
264
+
265
+ However, `curve25519-dalek` is designed as a *mid-level* API, aimed at
266
+ implementing other, higher-level primitives. Instead of providing FFI at the
267
+ mid-level, our suggestion is to implement the higher-level primitive (a
268
+ signature, PAKE, ZKP, etc) in Rust, using `curve25519-dalek` as a dependency,
269
+ and have that crate provide a minimal, byte-buffer-oriented FFI specific to
270
+ that primitive.
271
+
272
+ # Contributing
273
+
274
+ Please see [CONTRIBUTING.md][contributing].
275
+
276
+ # About
277
+
278
+ **SPOILER ALERT:** *The Twelfth Doctor's first encounter with the Daleks is in
279
+ his second full episode, "Into the Dalek". A beleaguered ship of the "Combined
280
+ Galactic Resistance" has discovered a broken Dalek that has turned "good",
281
+ desiring to kill all other Daleks. The Doctor, Clara and a team of soldiers
282
+ are miniaturized and enter the Dalek, which the Doctor names Rusty. They
283
+ repair the damage, but accidentally restore it to its original nature, causing
284
+ it to go on the rampage and alert the Dalek fleet to the whereabouts of the
285
+ rebel ship. However, the Doctor manages to return Rusty to its previous state
286
+ by linking his mind with the Dalek's: Rusty shares the Doctor's view of the
287
+ universe's beauty, but also his deep hatred of the Daleks. Rusty destroys the
288
+ other Daleks and departs the ship, determined to track down and bring an end
289
+ to the Dalek race.*
290
+
291
+ `curve25519-dalek` is authored by Isis Agora Lovecruft and Henry de Valence.
292
+
293
+ Portions of this library were originally a port of [Adam Langley's
294
+ Golang ed25519 library](https://github.com/agl/ed25519), which was in
295
+ turn a port of the reference `ref10` implementation. Most of this code,
296
+ including the 32-bit field arithmetic, has since been rewritten.
297
+
298
+ The fast `u32` and `u64` scalar arithmetic was implemented by Andrew Moon, and
299
+ the addition chain for scalar inversion was provided by Brian Smith. The
300
+ optimised batch inversion was contributed by Sean Bowe and Daira Hopwood.
301
+
302
+ The `no_std` and `zeroize` support was contributed by Tony Arcieri.
303
+
304
+ The formally verified `fiat_backend` integrates Rust code generated by the
305
+ [Fiat Crypto project](https://github.com/mit-plv/fiat-crypto) and was
306
+ contributed by François Garillot.
307
+
308
+ Thanks also to Ashley Hauck, Lucas Salibian, Manish Goregaokar, Jack Grigg,
309
+ Pratyush Mishra, Michael Rosenberg, @pinkforest, and countless others for their
310
+ contributions.
311
+
312
+ [ed25519-dalek]: https://github.com/dalek-cryptography/curve25519-dalek/tree/main/ed25519-dalek
313
+ [x25519-dalek]: https://github.com/dalek-cryptography/curve25519-dalek/tree/main/x25519-dalek
314
+ [docs]: https://docs.rs/curve25519-dalek/
315
+ [contributing]: https://github.com/dalek-cryptography/curve25519-dalek/blob/master/CONTRIBUTING.md
316
+ [criterion]: https://github.com/japaric/criterion.rs
317
+ [parallel_doc]: https://docs.rs/curve25519-dalek/latest/curve25519_dalek/backend/vector/index.html
318
+ [subtle_doc]: https://docs.rs/subtle
319
+ [fiat-crypto]: https://github.com/mit-plv/fiat-crypto
320
+ [semver]: https://semver.org/spec/v2.0.0.html
321
+ [rngcorestd]: https://github.com/rust-random/rand/tree/7aa25d577e2df84a5156f824077bb7f6bdf28d97/rand_core#crate-features
322
+ [zeroize-trait]: https://docs.rs/zeroize/latest/zeroize/trait.Zeroize.html
323
+ [SIMD backend]: #simd-backend