update nip-110: change MIT license to CC0

This commit is contained in:
degenrocket 2023-11-05 23:59:20 +00:00
parent 51814492cc
commit be1ff30c5c
No known key found for this signature in database
GPG Key ID: 19896421F4AE9EA4

12
110.md
View File

@ -16,24 +16,24 @@ Another problem is that some users want to use different licenses for different
### Solution
The easiest solution for this problem is to add a license to each signed event in accordance with the [SPASM](https://github.com/degenrocket/spasm) specification.
The easiest solution for this problem is to add a permissive license (CC0, MIT) to each signed event in accordance with the [SPASM](https://github.com/degenrocket/spasm) specification.
Then relays and clients can check whether events have an MIT license or any other license and choose whether to display/distribute such events or not.
Then relays and clients can check whether events have the CC0 license or any other license and choose whether to display/distribute such events or not.
While adding a dedicated license field (e.g., `"license":"MIT"`) would be ideal, the easiest solution with backwards-compatibility is to add a license as a tag.
While adding a dedicated license field (e.g., `"license":"CC0"`) would be ideal, the easiest solution with backwards-compatibility is to add a license as a tag.
```js
tags: [
[
"license",
"MIT"
"CC0"
]
]
```
### Implementation
Here is an example of adding an MIT license to each Nostr event as a tag.
Here is an example of adding the Creative Commons Zero (CC0) license, a permissive alternative to the MIT license applied to general text, to each Nostr event as a tag.
```js
let nostrEvent = {
@ -42,7 +42,7 @@ let nostrEvent = {
tags: [
[
"license",
"MIT"
"CC0"
]
],
content: "not your keys, not your words",