You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
6.0 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  1. This repository includes the following third-party open-source code.
  2. * The code in src/scalar/ristretto255.rs is derived from [bls12-381](https://github.com/zkcrypto/bls12_381).
  3. Specifically, from [src/bls12_381/scalar.rs](https://github.com/zkcrypto/bls12_381/blob/master/src/scalar.rs) and [src/bls12_381/util.rs](https://github.com/zkcrypto/bls12_381/blob/master/src/util.rs), which has the following copyright and license.
  4. Permission is hereby granted, free of charge, to any
  5. person obtaining a copy of this software and associated
  6. documentation files (the "Software"), to deal in the
  7. Software without restriction, including without
  8. limitation the rights to use, copy, modify, merge,
  9. publish, distribute, sublicense, and/or sell copies of
  10. the Software, and to permit persons to whom the Software
  11. is furnished to do so, subject to the following
  12. conditions:
  13. The above copyright notice and this permission notice
  14. shall be included in all copies or substantial portions
  15. of the Software.
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
  17. ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  18. TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  19. PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
  20. SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  21. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  22. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
  23. IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  24. DEALINGS IN THE SOFTWARE.
  25. * The invert and batch_invert methods in src/scalar/ristretto255.rs is from [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek), which has the following copyright and license.
  26. Copyright (c) 2016-2019 Isis Agora Lovecruft, Henry de Valence. All rights reserved.
  27. Redistribution and use in source and binary forms, with or without
  28. modification, are permitted provided that the following conditions are
  29. met:
  30. 1. Redistributions of source code must retain the above copyright
  31. notice, this list of conditions and the following disclaimer.
  32. 2. Redistributions in binary form must reproduce the above copyright
  33. notice, this list of conditions and the following disclaimer in the
  34. documentation and/or other materials provided with the distribution.
  35. 3. Neither the name of the copyright holder nor the names of its
  36. contributors may be used to endorse or promote products derived from
  37. this software without specific prior written permission.
  38. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  39. IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  40. TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  41. PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  42. HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  43. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
  44. TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  45. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  46. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  47. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  48. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  49. ========================================================================
  50. Portions of curve25519-dalek were originally derived from Adam Langley's
  51. Go ed25519 implementation, found at <https://github.com/agl/ed25519/>,
  52. under the following licence:
  53. ========================================================================
  54. Copyright (c) 2012 The Go Authors. All rights reserved.
  55. Redistribution and use in source and binary forms, with or without
  56. modification, are permitted provided that the following conditions are
  57. met:
  58. * Redistributions of source code must retain the above copyright
  59. notice, this list of conditions and the following disclaimer.
  60. * Redistributions in binary form must reproduce the above
  61. copyright notice, this list of conditions and the following disclaimer
  62. in the documentation and/or other materials provided with the
  63. distribution.
  64. * Neither the name of Google Inc. nor the names of its
  65. contributors may be used to endorse or promote products derived from
  66. this software without specific prior written permission.
  67. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  68. IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  69. TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  70. PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  71. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  72. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  73. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  74. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  75. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  76. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  77. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  78. * The src/nizk/bullet.rs is derived from [bulletproofs](https://github.com/dalek-cryptography/bulletproofs/), which has the following license:
  79. MIT License
  80. Copyright (c) 2018 Chain, Inc.
  81. Permission is hereby granted, free of charge, to any person obtaining a copy
  82. of this software and associated documentation files (the "Software"), to deal
  83. in the Software without restriction, including without limitation the rights
  84. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  85. copies of the Software, and to permit persons to whom the Software is
  86. furnished to do so, subject to the following conditions:
  87. The above copyright notice and this permission notice shall be included in all
  88. copies or substantial portions of the Software.
  89. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  90. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  91. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  92. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  93. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  94. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  95. SOFTWARE.