mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
update nip-110: change MIT license to CC0
This commit is contained in:
parent
51814492cc
commit
be1ff30c5c
12
110.md
12
110.md
|
@ -16,24 +16,24 @@ Another problem is that some users want to use different licenses for different
|
||||||
|
|
||||||
### Solution
|
### 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
|
```js
|
||||||
tags: [
|
tags: [
|
||||||
[
|
[
|
||||||
"license",
|
"license",
|
||||||
"MIT"
|
"CC0"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Implementation
|
### 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
|
```js
|
||||||
let nostrEvent = {
|
let nostrEvent = {
|
||||||
|
@ -42,7 +42,7 @@ let nostrEvent = {
|
||||||
tags: [
|
tags: [
|
||||||
[
|
[
|
||||||
"license",
|
"license",
|
||||||
"MIT"
|
"CC0"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
content: "not your keys, not your words",
|
content: "not your keys, not your words",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user