diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8ec146e --- /dev/null +++ b/LICENSE @@ -0,0 +1,159 @@ +# Cryptographic Autonomy License version 1.0 + +_This Cryptographic Autonomy License (the “License”) applies to any Work whose owner has marked it with any of the following notices:_ + +_“Licensed under the Cryptographic Autonomy License version 1.0,” or_ + +_“SPDX-License-Identifier: CAL-1.0,” or_ + +_“Licensed under the Cryptographic Autonomy License version 1.0, with Combined Work Exception,” or_ + +_“SPDX-License-Identifier: CAL-1.0 with Combined-Work-Exception.”_ + +--- + +## 1. Purpose + +This License gives You unlimited permission to use and modify the software to which it applies (the “Work”), either as-is or in modified form, for Your private purposes, while protecting the owners and contributors to the software from liability. + +This License also strives to protect the freedom and autonomy of third parties who receive the Work from you. If any non-affiliated third party receives any part, aspect, or element of the Work from You, this License requires that You provide that third party all the permissions and materials needed to independently use and modify the Work without that third party having a loss of data or capability due to your actions. + +The full permissions, conditions, and other terms are laid out below. + +## 2. Receiving a License + +In order to receive this License, You must agree to its rules. The rules of this License are both obligations of Your agreement with the Licensor and conditions to your License. You must not do anything with the Work that triggers a rule You cannot or will not follow. + +### 2.1. Application + +The terms of this License apply to the Work as you receive it from Licensor, as well as to any modifications, elaborations, or implementations created by You that contain any licenseable portion of the Work (a “Modified Work”). Unless specified, any reference to the Work also applies to a Modified Work. + +### 2.2. Offer and Acceptance + +This License is automatically offered to every person and organization. You show that you accept this License and agree to its conditions by taking any action with the Work that, absent this License, would infringe any intellectual property right held by Licensor. + +### 2.3. Compliance and Remedies + +Any failure to act according to the terms and conditions of this License places Your use of the Work outside the scope of the License and infringes the intellectual property rights of the Licensor. In the event of infringement, the terms and conditions of this License may be enforced by Licensor under the intellectual property laws of any jurisdiction to which You are subject. You also agree that either the Licensor or a Recipient (as an intended third-party beneficiary) may enforce the terms and conditions of this License against You via specific performance. + +## 3. Permissions and Conditions + +### 3.1. Permissions Granted + +Conditioned on compliance with section 4, and subject to the limitations of section 3.2, Licensor grants You the world-wide, royalty-free, non-exclusive permission to: + +> a) Take any action with the Work that would infringe the non-patent intellectual property laws of any jurisdiction to which You are subject; and +> +> b) Take any action with the Work that would infringe any patent claims that Licensor can license or becomes able to license, to the extent that those claims are embodied in the Work as distributed by Licensor. + +### 3.2. Limitations on Permissions Granted + +The following limitations apply to the permissions granted in section 3.1: + +> a) Licensor does not grant any patent license for claims that are only infringed due to modification of the Work as provided by Licensor, or the combination of the Work as provided by Licensor, directly or indirectly, with any other component, including other software or hardware. +> +> b) Licensor does not grant any license to the trademarks, service marks, or logos of Licensor, except to the extent necessary to comply with the attribution conditions in section 4.1 of this License. + +## 4. Conditions + +If You exercise any permission granted by this License, such that the Work, or any part, aspect, or element of the Work, is distributed, communicated, made available, or made perceptible to a non-Affiliate third party (a “Recipient”), either via physical delivery or via a network connection to the Recipient, You must comply with the following conditions: + +### 4.1. Provide Access to Source Code + +Subject to the exception in section 4.4, You must provide to each Recipient a copy of, or no-charge unrestricted network access to, the Source Code corresponding to the Work. + +The “Source Code” of the Work means the form of the Work preferred for making modifications, including any comments, configuration information, documentation, help materials, installation instructions, cryptographic seeds or keys, and any information reasonably necessary for the Recipient to independently compile and use the Source Code and to have full access to the functionality contained in the Work. + +#### 4.1.1. Providing Network Access to the Source Code + +Network access to the Notices and Source Code may be provided by You or by a third party, such as a public software repository, and must persist during the same period in which You exercise any of the permissions granted to You under this License and for at least one year thereafter. + +#### 4.1.2. Source Code for a Modified Work + +Subject to the exception in section 4.5, You must provide to each Recipient of a Modified Work Access to Source Code corresponding to those portions of the Work remaining in the Modified Work as well as the modifications used by You to create the Modified Work. The Source Code corresponding to the modifications in the Modified Work must be provided to the Recipient either a) under this License, or b) under a Compatible Open Source License. + +A “Compatible Open Source License” means a license accepted by the Open Source Initiative that allows object code created using both Source Code provided under this License and Source Code provided under the other open source license to be distributed together as a single work. + +#### 4.1.3. Coordinated Disclosure of Security Vulnerabilities + +You may delay providing the Source Code corresponding to a particular modification of the Work for up to ninety (90) days (the “Embargo Period”) if: a) the modification is intended to address a newly-identified vulnerability or a security flaw in the Work, b) disclosure of the vulnerability or security flaw before the end of the Embargo Period would put the data, identity, or autonomy of one or more Recipients of the Work at significant risk, c) You are participating in a coordinated disclosure of the vulnerability or security flaw with one or more additional Licensees, and d) Access to the Source Code pertaining to the modification is provided to all Recipients at the end of the Embargo Period. + +### 4.2. Maintain User Autonomy + +In addition to providing each Recipient the opportunity to have Access to the Source Code, You cannot use the permissions given under this License to interfere with a Recipient’s ability to fully use an independent copy of the Work generated from the Source Code You provide with the Recipient’s own User Data. + +“User Data” means any data that is an input to or an output from the Work, where the presence of the data is necessary for substantially identical use of the Work in an equivalent context chosen by the Recipient, and where the Recipient has an existing ownership interest, an existing right to possess, or where the data has been generated by, for, or has been assigned to the Recipient. + +#### 4.2.1. No Withholding User Data + +Throughout any period in which You exercise any of the permissions granted to You under this License, You must also provide to any Recipient to whom you provide services via the Work, a no-charge copy, provided in a commonly used electronic form, of the Recipient’s User Data in your possession, to the extent that such User Data is available to You for use in conjunction with the Work. + +#### 4.2.2. No Technical Measures that Limit Access + +You may not, by the use of cryptographic methods applied to anything provided to the Recipient, by possession or control of cryptographic keys, seeds, or hashes, by other technological protection measures, or by any other method, limit a Recipient's ability to access any functionality present in the Recipient's independent copy of the Work, or deny a Recipient full control of the Recipient's User Data. + +#### 4.2.3. No Legal or Contractual Measures that Limit Access + +You may not contractually restrict a Recipient's ability to independently exercise the permissions granted under this License. You waive any legal power to forbid circumvention of technical protection measures that include use of the Work, and You waive any claim that the capabilities of the Work were limited or modified as a means of enforcing the legal rights of third parties against Recipients. + +### 4.3. Provide Notices and Attribution + +You must retain all licensing, authorship, or attribution notices contained in the Source Code (the “Notices”), and provide all such Notices to each Recipient, together with a statement acknowledging the use of the Work. Notices may be provided directly to a Recipient or via an easy-to-find hyperlink to an Internet location also providing Access to Source Code. + +### 4.4. Scope of Conditions in this License + +You are required to uphold the conditions of this License only relative to those who are Recipients of the Work from You. Other than providing Recipients with the applicable Notices, Access to Source Code, and a copy of and full control of their User Data, nothing in this License requires You to provide processing services to or engage in network interactions with anyone. + +### 4.5. Combined Work Exception + +As an exception to condition that You provide Recipients Access to Source Code, any Source Code files marked by the Licensor as having the “Combined Work Exception,” or any object code exclusively resulting from Source Code files so marked, may be combined with other Software into a “Larger Work.” So long as you comply with the requirements to provide Recipients the applicable Notices and Access to the Source Code provided to You by Licensor, and you provide Recipients access to their User Data and do not limit Recipient’s ability to independently work with their User Data, any other Software in the Larger Work as well as the Larger Work as a whole may be licensed under the terms of your choice. + +## 5. Term and Termination + +The term of this License begins when You receive the Work, and continues until terminated for any of the reasons described herein, or until all Licensor’s intellectual property rights in the Software expire, whichever comes first (“Term”). This License cannot be revoked, only terminated for the reasons listed below. + +### 5.1. Effect of Termination + +If this License is terminated for any reason, all permissions granted to You under Section 3 by any Licensor automatically terminate. You will immediately cease exercising any permissions granted in this License relative to the Work, including as part of any Modified Work. + +### 5.2. Termination for Non-Compliance; Reinstatement + +This License terminates automatically if You fail to comply with any of the conditions in section 4. As a special exception to termination for non-compliance, Your permissions for the Work under this License will automatically be reinstated if You come into compliance with all the conditions in section 2 within sixty (60) days of being notified by Licensor or an intended third party beneficiary of Your noncompliance. You are eligible for reinstatement of permissions for the Work one time only, and only for the sixty days immediately after becoming aware of noncompliance. Loss of permissions granted for the Work under this License due to either a) sustained noncompliance lasting more than sixty days or b) subsequent termination for noncompliance after reinstatement, is permanent, unless rights are specifically restored by Licensor in writing. + +### 5.3 Termination Due to Litigation + +If You initiate litigation against Licensor, or any Recipient of the Work, either direct or indirect, asserting that the Work directly or indirectly infringes any patent, then all permissions granted to You by this License shall terminate. In the event of termination due to litigation, all permissions validly granted by You under this License, directly or indirectly, shall survive termination. Administrative review procedures, declaratory judgment actions, counterclaims in response to patent litigation, and enforcement actions against former Licensees terminated under this section do not cause termination due to litigation. + +## 6. Disclaimer of Warranty and Limit on Liability + +As far as the law allows, the Work comes AS-IS, without any warranty of any kind, and no Licensor or contributor will be liable to anyone for any damages related to this software or this license, under any kind of legal claim, or for any type of damages, including indirect, special, incidental, or consequential damages of any type arising as a result of this License or the use of the Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, loss of profits, revenue, or any and all other commercial damages or losses. + +## 7. Other Provisions + +### 7.1. Affiliates + +An “Affiliate” means any other entity that, directly or indirectly through one or more intermediaries, controls, is controlled by, or is under common control with, the Licensee. Employees of a Licensee and natural persons acting as contractors exclusively providing services to Licensee are also Affiliates. + +### 7.2. Choice of Jurisdiction and Governing Law + +A Licensor may require that any action or suit by a Licensee relating to a Work provided by Licensor under this License may be brought only in the courts of a particular jurisdiction and under the laws of a particular jurisdiction (excluding its conflict-of-law provisions), if Licensor provides conspicuous notice of the particular jurisdiction to all Licensees. + +### 7.3. No Sublicensing + +This License is not sublicensable. Each time You provide the Work or a Modified Work to a Recipient, the Recipient automatically receives a license under the terms described in this License. You may not impose any further reservations, conditions, or other provisions on any Recipients’ exercise of the permissions granted herein. + +### 7.4. Attorneys' Fees + +In any action to enforce the terms of this License, or seeking damages relating thereto, including by an intended third party beneficiary, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. A “prevailing party” is the party that achieves, or avoids, compliance with this License, including through settlement. This section shall survive the termination of this License. + +### 7.5. No Waiver + +Any failure by Licensor to enforce any provision of this License will not constitute a present or future waiver of such provision nor limit Licensor’s ability to enforce such provision at a later time. + +### 7.6. Severability + +If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any invalid or unenforceable portion will be interpreted to the effect and intent of the original portion. If such a construction is not possible, the invalid or unenforceable portion will be severed from this License but the rest of this License will remain in full force and effect. + +### 7.7. License for the Text of this License + +The text of this license is released under the Creative Commons Attribution-ShareAlike 4.0 International License, with the caveat that any modifications of this license may not use the name “Cryptographic Autonomy License” or any name confusingly similar thereto to describe any derived work of this License. diff --git a/crates/holoom_types/Cargo.toml b/crates/holoom_types/Cargo.toml index 83bc085..6097b51 100644 --- a/crates/holoom_types/Cargo.toml +++ b/crates/holoom_types/Cargo.toml @@ -2,6 +2,7 @@ name = "holoom_types" version = "0.0.3" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/jaq_wrapper/Cargo.toml b/crates/jaq_wrapper/Cargo.toml index 09354de..aa682d8 100644 --- a/crates/jaq_wrapper/Cargo.toml +++ b/crates/jaq_wrapper/Cargo.toml @@ -2,6 +2,7 @@ name = "jaq_wrapper" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/ping_coordinator/Cargo.toml b/crates/ping_coordinator/Cargo.toml index 372cf84..73ed74f 100644 --- a/crates/ping_coordinator/Cargo.toml +++ b/crates/ping_coordinator/Cargo.toml @@ -2,6 +2,7 @@ name = "ping_coordinator" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/records_coordinator/Cargo.toml b/crates/records_coordinator/Cargo.toml index d650c9a..d8b7579 100644 --- a/crates/records_coordinator/Cargo.toml +++ b/crates/records_coordinator/Cargo.toml @@ -2,6 +2,7 @@ name = "records_coordinator" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/signer_coordinator/Cargo.toml b/crates/signer_coordinator/Cargo.toml index 7e30a6e..f912e90 100644 --- a/crates/signer_coordinator/Cargo.toml +++ b/crates/signer_coordinator/Cargo.toml @@ -2,6 +2,7 @@ name = "signer_coordinator" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/username_registry_coordinator/Cargo.toml b/crates/username_registry_coordinator/Cargo.toml index 50ebd80..fdbcb82 100644 --- a/crates/username_registry_coordinator/Cargo.toml +++ b/crates/username_registry_coordinator/Cargo.toml @@ -2,6 +2,7 @@ name = "username_registry_coordinator" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/username_registry_integrity/Cargo.toml b/crates/username_registry_integrity/Cargo.toml index a0f9d12..7079782 100644 --- a/crates/username_registry_integrity/Cargo.toml +++ b/crates/username_registry_integrity/Cargo.toml @@ -2,6 +2,7 @@ name = "username_registry_integrity" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/username_registry_utils/Cargo.toml b/crates/username_registry_utils/Cargo.toml index 756ca7a..3675681 100644 --- a/crates/username_registry_utils/Cargo.toml +++ b/crates/username_registry_utils/Cargo.toml @@ -2,6 +2,7 @@ name = "username_registry_utils" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/username_registry_validation/Cargo.toml b/crates/username_registry_validation/Cargo.toml index 87c0252..0a3edd3 100644 --- a/crates/username_registry_validation/Cargo.toml +++ b/crates/username_registry_validation/Cargo.toml @@ -2,6 +2,7 @@ name = "username_registry_validation" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/version_coordinator/Cargo.toml b/crates/version_coordinator/Cargo.toml index 2f3eccd..adcf769 100644 --- a/crates/version_coordinator/Cargo.toml +++ b/crates/version_coordinator/Cargo.toml @@ -2,6 +2,7 @@ name = "version_coordinator" version = "0.0.1" edition = "2021" +license = "CAL-1.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/package-lock.json b/package-lock.json index d488dbb..ae8b7b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4606,7 +4606,7 @@ "packages/authority": { "name": "@holoom/authority", "version": "0.1.0-dev.16", - "license": "MIT", + "license": "CAL-1.0", "dependencies": { "@holochain/client": "^0.18.0-dev", "@holoom/types": "0.1.0-dev.16", @@ -4631,7 +4631,7 @@ "packages/client": { "name": "@holoom/client", "version": "0.1.0-dev.16", - "license": "MIT", + "license": "CAL-1.0", "dependencies": { "@holoom/types": "0.1.0-dev.16", "@msgpack/msgpack": "^2.7.2", @@ -4672,7 +4672,7 @@ "packages/sandbox": { "name": "@holoom/sandbox", "version": "0.1.0-dev.16", - "license": "MIT", + "license": "CAL-1.0", "dependencies": { "@holochain/client": "^0.18.0-dev", "yaml": "^2.5.1" @@ -4732,7 +4732,7 @@ "packages/types": { "name": "@holoom/types", "version": "0.1.0-dev.16", - "license": "MIT", + "license": "CAL-1.0", "devDependencies": { "@holochain/client": "^0.18.0-dev", "@rollup/plugin-alias": "^5.1.0", diff --git a/packages/authority/package.json b/packages/authority/package.json index ee8fbc7..e04163f 100644 --- a/packages/authority/package.json +++ b/packages/authority/package.json @@ -3,7 +3,7 @@ "version": "0.1.0-dev.16", "description": "Helpers for interacting with a holoom network authority agent", "type": "module", - "license": "MIT", + "license": "CAL-1.0", "main": "dist/index.browser.js", "types": "dist/types/index.d.ts", "exports": { diff --git a/packages/client/package.json b/packages/client/package.json index 9d7d55c..96e8bf2 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -3,7 +3,7 @@ "version": "0.1.0-dev.16", "description": "Helpers for interacting with a holoom network agent", "type": "module", - "license": "MIT", + "license": "CAL-1.0", "main": "dist/index.browser.js", "types": "dist/types/index.d.ts", "exports": { diff --git a/packages/sandbox/package.json b/packages/sandbox/package.json index 429f0fe..1eb517f 100644 --- a/packages/sandbox/package.json +++ b/packages/sandbox/package.json @@ -3,7 +3,7 @@ "version": "0.1.0-dev.16", "description": "Helpers for starting a holochain sandbox with holoom installed", "type": "module", - "license": "MIT", + "license": "CAL-1.0", "types": "dist/types/index.d.ts", "exports": { ".": { diff --git a/packages/types/package.json b/packages/types/package.json index cd5832a..4a8945b 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -3,7 +3,7 @@ "version": "0.1.0-dev.16", "description": "Types generated from the holoom_types rust lib", "type": "module", - "license": "MIT", + "license": "CAL-1.0", "main": "dist/index.browser.js", "types": "dist/types/index.d.ts", "exports": {