diff --git a/LICENSE b/LICENSE deleted file mode 100644 index fbc92bf..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2024 Silence Laboratories - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..a457da8 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,83 @@ +SILENCE LABORATORIES’ NON-COMMERCIAL USE LICENSE AGREEMENT + +This is an agreement (**License**) between you and Silence Laboratories Pte. Ltd., a company incorporated under the laws of Singapore having the registration number UEN 201938700D (**Silence Laboratories**). By using or accessing this repository(ies)/software library(ies) made available by Silence Laboratories (each, a **Library**) in any manner, you agree to the terms of this License.  + +You acknowledge and accept that Silence Laboratories and its licensors, as applicable, own all legal right, title and interest in and to the work, software, application, source code, object code, documentation and any other documents in the Library. Further, you acknowledge and agree that Silence Laboratories and its licensors, as applicable, own all registered and unregistered intellectual property rights subsisting in the Library anywhere in the world, whether in source code form or any other form.  + +The limited rights granted below in relation to the Library are the only rights granted under this License. No additional rights are granted by Silence Laboratories under this License.  + +This License is applicable to all copies of the original and any modified versions of the Library, and derivative works of the Library. This License is applicable to all past and future versions of the Library, unless decided otherwise by Silence Laboratories in its sole discretion. + +1. **Grant of License**  + + 1.1. You are granted a perpetual, limited, revocable, worldwide, royalty-free, non-exclusive, non-transferable, non-sublicensable License to use, reproduce, make available, distribute, publish, copy, modify, merge, combine with another program or create derivative works of the Library in source code or any other form (**Resulting Program(s)**) solely for Non-Commercial Use (as defined below), and as long as you:  + +a. do not use, reproduce, make available, distribute, publish, copy, modify, merge and combine the Library or Resulting Program (a) in any manner that infringes, misappropriates, or otherwise violates any third-party rights, or (b) in any manner that violates any applicable law.  + +b. give any other recipients or users of the Library or the Resulting Program a copy of this License;  + +c. prominently publish or give notice with each copy of the Resulting Program that,  + +i. the Library is used in the Resulting Program,  + +ii. (if applicable) you changed or modified the files and any other documents in the Library (including stating the changes or modifications made), and give the relevant date; and  + +iii. Silence Laboratories is the owner of the copyright and all other intellectual property rights in the Library by: (A) including the following copyright notice: “\[This repository/software library] is licensed under the Silence Laboratories License Agreement, Copyright © Silence Laboratories Pte. Ltd. All Rights Reserved.”, (B), this list of conditions, and (C) the disclaimer below (**NOTICE**) as a text file; and  + +d. require the Resulting Program and any reproduction, distribution, publication, copy, modification, merger therewith, combination with another program or derivative works thereof to the same NOTICE requirement and Non-Commercial Use restrictions set out below; and  + +e. make the source code form of the Resulting Program publicly available or make it available upon request (subject to the terms of this License, third party rights, and applicable law); and + +f. retain, in the source form of any Resulting Program that you distribute, all copyright, patent, trademark, and attribution notices from the source form of the Library, excluding those notices that do not pertain to any part of the Resulting Program; and + +g. If the Library includes a NOTICE text file as part of its distribution, then any Resulting Program that you distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Resulting Program, in at least one of the following places: within a NOTICE text file distributed as part of the Resulting Program; within the source form or documentation, if provided along with the Resulting Program; or, within a display generated by the Resulting Program, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add your own attribution notices within Resulting Programs that you distribute, alongside as an addendum to the NOTICE text from the Library, provided that such additional attribution notices cannot be construed as modifying the License.  + +1.2. You may add your own copyright statement to your modifications and provide additional or different license terms and conditions for use, reproduction, or distribution of your modifications, or for any such Resulting Program as a whole, provided your use, reproduction, or distribution of the Library otherwise complies with the conditions stated in this License. + +2) **Violation of terms of License** + + 2.1. If your use of the Library or the Resulting Program does not comply with the conditions set out in this License or has any intended or unintended commercial application anywhere in the world and at any given point of time, you shall obtain a Commercial Use License from Silence Laboratories, or you must refrain from using the Library immediately. To obtain a copy of the Commercial Use License, reach out to **info\@silencelaboratories.com** + + 2.2 Upon Silence Laboratories coming to know of your potential violation of any of the terms of this License, you will be notified in writing (**Silence Laboratories Notice**) to purchase a Commercial Use License within 30 ****days of receiving the Silence Laboratories ****Notice or refrain from using the Library immediately.  + + 2.3. Any continued use of the Library in violation of this License will automatically result in termination of your rights under this License for the current and any future or past versions of the Library.  + +3. **Intellectual Property** + + 3.1. This License does not grant you any right to use the name, trade marks, service marks, trade names, logos or any other intellectual property of Silence Laboratories for endorsing, promoting the Resulting Program or other works derived using the Library without obtaining specific written permission from Silence Laboratories (except as required for reasonable and customary use in attributing the usage of the Library to Silence Laboratories as expressly required under this License).  + + 3.2. You must cause any Resulting Program to carry prominent notices stating that you have made changes to or modified the Library independently and without any involvement from Silence Laboratories in developing the Resulting Program.  + +4. **Third Party Material** + +The Library may contain third-party software or other components (including free and open source software) as may be made available by Silence Laboratories on its website **https\://silencelaboratories.com_._** (**OS Components**), which are subject to the license terms of the respective third-party licensors. Your dealings or correspondence with third parties and your use of or interaction with any OS Components are solely between you and the third party. Silence Laboratories does not control or endorse, and makes no representations or warranties regarding, any OS Components, and your access to and use of such OS Components are at your own risk. You may modify or replace these OS Components; provided that you comply with the terms of this License, any applicable licensing terms governing use of the OS Components, and applicable laws. Silence Laboratories is not obligated to provide any updates, maintenance, warranty, technical or other support, or services for the resultant modified Library.  + +5. **Limitation of Liability** + +TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL SILENCE LABORATORIES BE LIABLE TO YOU (A) UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE UNDER THIS LICENSE, OR (B) FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, PUNITIVE OR SPECIAL DAMAGES OR LOST PROFITS, EVEN IF SILENCE LABORATORIES HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE PROGRAM, THEIR CONSTITUENT COMPONENTS, THE RESULTING PROGRAM AND ANY OUTPUT (COLLECTIVELY, **PROGRAM MATERIALS**) ARE NOT DESIGNED OR INTENDED FOR USE IN ANY APPLICATION OR SITUATION WHERE FAILURE OR FAULT OF THE PROGRAM MATERIALS COULD REASONABLY BE ANTICIPATED TO LEAD TO SERIOUS INJURY OF ANY PERSON OR PROPERTY, INCLUDING POTENTIAL LOSS OF PROPERTY AND VIRTUAL ASSETS (INCLUDING CRYPTOCURRENCIES, NON-FUNGIBLE TOKENS, ETC.), LOSS OF ACCESS TO A VIRTUAL ASSET WALLET, VIOLATION OF AN INDIVIDUAL’S PRIVACY RIGHTS (EACH, A **HIGH-RISK USE**). IF YOU ELECT TO USE ANY OF THE PROGRAM MATERIALS FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK. YOU AGREE TO DESIGN AND IMPLEMENT APPROPRIATE DECISION-MAKING AND RISK-MITIGATION PROCEDURES AND POLICIES IN CONNECTION WITH A HIGH-RISK USE SUCH THAT EVEN IF THERE IS A FAILURE OR FAULT IN ANY OF THE PROGRAM MATERIALS, THE SAFETY OF PERSONS OR PROPERTY AFFECTED BY THE ACTIVITY STAYS AT A LEVEL THAT IS REASONABLE, APPROPRIATE, AND LAWFUL FOR THE FIELD OF THE HIGH-RISK USE. + +6. **Indemnity**You will indemnify, defend and hold harmless Silence Laboratories and its affiliates, and each of its respective shareholders, directors, officers, employees, agents, successors, and assigns (collectively, the **Silence Laboratories Parties**) from and against any losses, liabilities, damages, fines, penalties, and expenses (including reasonable attorneys’ fees) incurred by any Silence Laboratories Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation (collectively, **Claims**) arising out of or related to: (a) your access to or use of the Program Products (as well as any results or data generated from such access or use), including any High-Risk Use (defined below); (b) your violation of this License; or (c) your violation, misappropriation or infringement of any rights of another (including intellectual property or other proprietary rights and privacy rights). You will promptly notify the Silence Laboratories Parties of any such Claims, and cooperate with Silence Laboratories Parties in defending such Claims. You will also grant the Silence Laboratories Parties sole control of the defense or settlement, at Silence Laboratories’ sole option, of any Claims. This indemnity is in addition to, and not in lieu of, any other indemnities or remedies set forth in a written agreement between you and Silence Laboratories or the other Silence Laboratories Parties. + +7. **Governing Law** + +This License will be governed by and shall be construed in accordance with the laws of Singapore without regard to any choice or conflict of laws rules. All or any disputes arising out of or touching upon or in relation to this License including the interpretation and validity of the terms thereof and the respective rights and obligations of the parties shall be settled through arbitration. The arbitration proceedings shall be held in Singapore by a sole arbitrator who shall be appointed by Silence Laboratories and whose decision shall be final and binding upon all the parties. Subject to the arbitration clause, the courts in Singapore alone shall have jurisdiction. The language of the arbitration proceedings shall be in English. You and Silence Laboratories agree that any cause of action arising in relation to the License must be commenced within three (3) months after the cause of action accrues or you become aware of the facts giving rise to the cause of action, whichever is later. Otherwise, such cause of action shall be permanently barred. Each party to any arbitration will cover its own fees and costs associated with the arbitration proceedings. The award of the arbitrator will be final and binding, and any judgement on the award rendered by the arbitrator may be entered in any court of competent jurisdiction. The parties to the arbitration shall not appeal any arbitration decision to any court.  + +8. **Modifications** + +Silence Laboratories may modify the terms of this License at any time, at its sole discretion. Such modified terms of this License will come into effect immediately upon their publication, unless decided otherwise by Silence Laboratories (**Effective Date**). By continuing to use or access the Library after the Effective Date, you agree to the modified terms of this License. It is your responsibility to check this License regularly for any modifications. We last modified this License on **12-02-2024**.  + +9. **Definition** + +**Non-Commercial Use** means your use of the Library as described below, as determined by Silence Laboratories in its sole discretion, for: + +a. personal use for research, experiments, personal study, educational purposes, private entertainment, personal projects or amateur pursuits;  + +b. use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization or government institution, + +in each case, i.e., (1) and (2), without anticipated commercial application. For the sake of clarity, modifying and/or creating a substitute for the Library, or any other use of the Library, for commercial gain, including by way of (a) using the Library for internal business purposes, or (b) resale or distribution for commercial purposes, shall not constitute Non-Commercial Use.  + +DISCLAIMER + +THIS LIBRARY IS PROVIDED BY THE COPYRIGHT HOLDER 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 PROGRAM, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +If you have any questions, comments or interest in pursuing any other commercial use cases, please reach out to us at **info@silencelaboratories.com**. diff --git a/src/constants.rs b/src/constants.rs index 0b3c247..233f937 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + //! use crate::VERSION; diff --git a/src/dkg.rs b/src/dkg.rs index bfa7825..64ea763 100644 --- a/src/dkg.rs +++ b/src/dkg.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + //! The structs and functions to compute the DKG for DKLS23 //! Structs with pub from_id: u8, pub to_id: u8, fields are intended to be send in point to point fashion //! while Structs only with from_id: u8 are distributed to each party diff --git a/src/dsg.rs b/src/dsg.rs index 52c2194..093b74e 100644 --- a/src/dsg.rs +++ b/src/dsg.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + //! The structs and functions for implementing DKLS23 signing operations //! Presignatures should be used only for one message signature use derivation_path::DerivationPath; diff --git a/src/error.rs b/src/error.rs index db2736b..43be42d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use thiserror::Error; #[derive(Debug, Error)] diff --git a/src/lib.rs b/src/lib.rs index c658df4..2157f10 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + pub mod dkg; pub mod dsg; diff --git a/src/pairs.rs b/src/pairs.rs index 227fae6..70368f0 100644 --- a/src/pairs.rs +++ b/src/pairs.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use std::cmp::Ord; /// Small ordered set of pairs. diff --git a/src/utils.rs b/src/utils.rs index 9557b16..2d4168d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use std::{ marker::PhantomData, mem, diff --git a/wrapper/wasm-ll/LICENSE b/wrapper/wasm-ll/LICENSE deleted file mode 120000 index 30cff74..0000000 --- a/wrapper/wasm-ll/LICENSE +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE \ No newline at end of file diff --git a/wrapper/wasm-ll/LICENSE.md b/wrapper/wasm-ll/LICENSE.md new file mode 120000 index 0000000..f0608a6 --- /dev/null +++ b/wrapper/wasm-ll/LICENSE.md @@ -0,0 +1 @@ +../../LICENSE.md \ No newline at end of file diff --git a/wrapper/wasm-ll/src/keygen.rs b/wrapper/wasm-ll/src/keygen.rs index 415c8a1..0a9af0a 100644 --- a/wrapper/wasm-ll/src/keygen.rs +++ b/wrapper/wasm-ll/src/keygen.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use js_sys::{Array, Uint8Array}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use wasm_bindgen::{prelude::*, throw_str}; diff --git a/wrapper/wasm-ll/src/keyshare.rs b/wrapper/wasm-ll/src/keyshare.rs index a6bcf15..788fc26 100644 --- a/wrapper/wasm-ll/src/keyshare.rs +++ b/wrapper/wasm-ll/src/keyshare.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use js_sys::Uint8Array; use wasm_bindgen::prelude::*; diff --git a/wrapper/wasm-ll/src/lib.rs b/wrapper/wasm-ll/src/lib.rs index 4e4773f..6ec1b64 100644 --- a/wrapper/wasm-ll/src/lib.rs +++ b/wrapper/wasm-ll/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + extern crate wee_alloc; // Use `wee_alloc` as the global allocator. diff --git a/wrapper/wasm-ll/src/message.rs b/wrapper/wasm-ll/src/message.rs index f163b06..6fa6e74 100644 --- a/wrapper/wasm-ll/src/message.rs +++ b/wrapper/wasm-ll/src/message.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use serde::{de::DeserializeOwned, Serialize}; use js_sys::Uint8Array; diff --git a/wrapper/wasm-ll/src/sign.rs b/wrapper/wasm-ll/src/sign.rs index a5c348c..150c736 100644 --- a/wrapper/wasm-ll/src/sign.rs +++ b/wrapper/wasm-ll/src/sign.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + use std::str::FromStr; use derivation_path::DerivationPath; diff --git a/wrapper/wasm-ll/src/utils.rs b/wrapper/wasm-ll/src/utils.rs index c4be847..46cc294 100644 --- a/wrapper/wasm-ll/src/utils.rs +++ b/wrapper/wasm-ll/src/utils.rs @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + #[allow(dead_code)] pub fn set_panic_hook() { // When the `console_error_panic_hook` feature is enabled, we can call the diff --git a/wrapper/wasm-ll/tests/tests.ts b/wrapper/wasm-ll/tests/tests.ts index 13f8112..9f9b7ae 100644 --- a/wrapper/wasm-ll/tests/tests.ts +++ b/wrapper/wasm-ll/tests/tests.ts @@ -1,3 +1,6 @@ +// Copyright (c) Silence Laboratories Pte. Ltd. All Rights Reserved. +// This software is licensed under the Silence Laboratories License Agreement. + // to run tests we need web build // wasm-pack build -t web ..