THIRD-PARTY LICENSE NOTICES
===========================

This file lists the third-party Rust crates statically compiled into the
`prophys._core` native extension distributed with this package, and the
license terms under which each is used. It does not cover this project's
own code, which is proprietary (see LICENSE). Crates used only at build
time (build scripts, procedural macros) are not part of the distributed
binary and are not listed.

All crates below are permissively licensed (MIT or BSD-3-Clause). None
impose copyleft obligations or restrict commercial or proprietary
redistribution. Where a crate offers a choice of license ("X OR Y"), this
project uses it under the MIT license, which every such crate offers.

The extension also links the Rust standard library (core, alloc, std),
used under the MIT license (https://github.com/rust-lang/rust).

The Python packages prophys depends on (jax, jaxlib, optax, numpy and the
optional extras) are not bundled; they are installed separately from PyPI
under their own licenses.

-----------------------------------------------------------------------
Crates used under the MIT License
-----------------------------------------------------------------------
aead, base64, block-buffer, cfg-if, chacha20, chacha20poly1305, cipher,
cmov, const-oid, cpufeatures, crossbeam-deque, crossbeam-epoch,
crossbeam-utils, crypto-common, ctutils, digest, ed25519, either,
generic-array, getrandom, hybrid-array, inout, itoa, libc, libm (see the
note below), memchr, memoffset, once_cell, poly1305, pyo3, pyo3-ffi,
rand_core, rayon, rayon-core, serde, serde_core, serde_json, sha2,
signature, typenum, unindent, universal-hash, zeroize, zmij

Full text of the MIT License:

    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright is held by each crate's respective authors and contributors.
See each crate's own repository for exact copyright holders and years
(available via https://crates.io/crates/<name>).

-----------------------------------------------------------------------
Crates used under the BSD 3-Clause License
-----------------------------------------------------------------------
curve25519-dalek, ed25519-dalek, subtle

Copyright holders: Isis Lovecruft, Henry de Valence (curve25519-dalek,
subtle), and additionally Tony Arcieri, Michael Rosenberg (ed25519-dalek).
Repository: https://github.com/dalek-cryptography

Full text of the BSD 3-Clause License:

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions
    are met:

    1. Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in
       the documentation and/or other materials provided with the
       distribution.

    3. Neither the name of the copyright holder nor the names of its
       contributors may be used to endorse or promote products derived
       from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
    WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.

-----------------------------------------------------------------------
libm: notices of the works it derives from
-----------------------------------------------------------------------
libm (https://github.com/rust-lang/libm), Copyright (c) 2018 Jorge
Aparicio, is used under the MIT license above. Portions are derived from
third-party works licensed under terms compatible with that license:

* musl libc (https://www.musl-libc.org/),
  Copyright (c) 2005-2020 Rich Felker, et al.
* The CORE-MATH project (https://core-math.gitlabpages.inria.fr/), MIT
  licensed on a per-file basis.

The musl libc COPYRIGHT file includes the following notice relevant to the
math portions of the library:

    Much of the math library code (src/math/* and src/complex/*) is
    Copyright (c) 1993,2004 Sun Microsystems or
    Copyright (c) 2003-2011 David Schultz or
    Copyright (c) 2003-2009 Steven G. Kargl or
    Copyright (c) 2003-2009 Bruce D. Evans or
    Copyright (c) 2008 Stephen L. Moshier or
    Copyright (c) 2017-2018 Arm Limited
    and labelled as such in comments in the individual source files. All
    have been licensed under extremely permissive terms.

The Sun Microsystems portions carry this notice:

    Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.

    Developed at SunPro, a Sun Microsystems, Inc. business.
    Permission to use, copy, modify, and distribute this
    software is freely granted, provided that this notice
    is preserved.
