-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test2 #4
base: lint2
Are you sure you want to change the base?
Test2 #4
Changes from all commits
d0dd39c
f5c456f
32bd6e5
7a72157
02d0326
250f313
474299b
a714738
74cd7e2
76ed590
941b91e
ea24283
a701698
a161828
516401f
4bdf178
c0371d7
fadea3b
cd18f21
f030e03
0e6c51c
2df45e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,18 @@ NIP-01 | |
|
||
`draft` `mandatory` | ||
|
||
このNIPは、誰もが実装すべき基本的なプロトコルを定義する。新しいNIPによって、新たにオプショナルな(もしくは必須の)フィールド・メッセージ・機能が、ここで記述される構造やフローに追加される可能性がある。 | ||
このNIPは、もが実すべき基本的なプロトコルを定義する。a新しいNIPによって、新たにオプショナルな(もしくは必須の)フールド・メッセージ・機能が、ここで記述される構造やフローに追加される可能性があります。 | ||
|
||
## イベントと署名 | ||
a | ||
ユーザーは各々が鍵ペアを持つ。署名、公開鍵、エンコーディングは[Schnorr signatures standard for the curve `secp256k1` (`secp256k1`曲線シュノア署名標準)](https://bips.xyz/340)に従う | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/ja-no-mixed-period> reported by reviewdog 🐶 |
||
|
||
ユーザーは各々が鍵ペアを持つ。署名、公開鍵、エンコーディングは[Schnorr signatures standard for the curve `secp256k1` (`secp256k1`曲線シュノア署名標準)](https://bips.xyz/340)に従う。 | ||
|
||
ただ1つだけ存在するオブジェクトの型が`event`で、以下のようなフォーマットで伝送される。 | ||
ただ1つだけ存在するオブジェクトの型がevent`で、以下のようなフォーマットで伝送される。 | ||
|
||
```jsonc | ||
{ | ||
"id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>, | ||
"pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, | ||
"id": <32-bytes lowercase hex-enacoded sha256 of the serialized event data>, | ||
"pubkey": <32-bytes lowercase hex-encoded public akey of the event creator>, | ||
"created_at": <unix timestamp in seconds>, | ||
"kind": <integer between 0 and 65535>, | ||
"tags": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
NIP-02 | ||
====== | ||
|
||
フォローリスト | ||
aaフォローリスト | ||
----------- | ||
|
||
`final` `optional` | ||
|
||
「フォローリスト」を意味するkind `3`の特別なイベントは、フォローしている/既知のプロフィールごとの`p`タグのリストを持つものとして定義される。 | ||
|
||
タグの個々の要素は、プロフィールの鍵・その鍵からのイベントを発見できるリレーのURL (必要なければ空文字列で設定可能) ・そのプロフィールのローカル名 (あるいは「愛称」) (空文字列が設定されるか、提供されないようできる) を含むべきで、つまり`["p", <32-bytes hex key>, <main relay URL>, <petname>]`である。 | ||
a | ||
タグの個々の要素は、プロフィールの鍵・その鍵からのイベントを発見、、、できるリレーのURL (必要なければ空文字列でa設定可能) ・そのプロフィールのローカル名 (あるいは「愛称」) (空文字列が設定されるか、提供されないようできる) を含むべきで、つまり`["p", <32-bytes hex key>, <main relay URL>, <petname>]`である。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/ja-no-successive-word> reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/max-ten> reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/ja-no-successive-word> reported by reviewdog 🐶 |
||
|
||
`.content`は使用されない。 | ||
|
||
|
@@ -29,7 +29,7 @@ NIP-02 | |
|
||
新しいフォローリストが公開されるたびに過去のものは上書きされるので、すべての要素を含むべきである。リレーとクライアントは新しいものを受け取ったら速やかに過去のフォローリストを削除すべきである (SHOULD) 。 | ||
|
||
既存のリストに新しいフォローを追加する際は常に、クライアントはそのユーザをリストの末尾に追加し、フォローした順に保存すべきである (SHOULD) 。 | ||
既存のリストの新しいフォローの追加する際は常に、クライアントはそのユーザをリストの末尾に追加し、フォローした順に保存すべきである (SHOULD) 。 | ||
|
||
## 用途 | ||
|
||
|
@@ -47,7 +47,7 @@ NIP-02 | |
|
||
### 愛称スキーム | ||
|
||
フォローリストからのデータは、クライアントによってほかの人々のフォローリストから派生したローカルの["petname"](http://www.skyhunter.com/marcs/petnames/IntroPetNames.html)テーブルを構築するために用いることができる。これにより、グローバルな人間が読める名前の必要性が軽減される。例えば: | ||
フォローリストからのデータは、クライアントによってほかの人々のフォローリストから派生したローカルの["petname"](http://www.skyhunter.com/marcs/petnames/IntroPetNames.html)テーブルを構築するために用いることができる。これにより、グローバルな人間が読める名前の必要性が軽減されます。例えば: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/no-mix-dearu-desumasu> reported by reviewdog 🐶 |
||
|
||
ユーザーは次のような内部のフォローリストを持っている。 | ||
|
||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ NIP-03 | |||||
|
||||||
`draft` `optional` | ||||||
|
||||||
このNIPは`kind:1040`のイベントを定義する。これは他のイベントに対する[OpenTimestamps](https://opentimestamps.org/)証明を含むことができる。 | ||||||
このNIPは`kind:1040`のイベントを定義することができる。これは他のイベントに対する[OpenTimestamps](https://opentimestamps.org/)証明を含むことができます。 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/ja-no-redundant-expression> reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [textlint] <eslint.rules.ja-technical-writing/no-mix-dearu-desumasu> reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [textlint-fix] reported by reviewdog 🐶
Suggested change
|
||||||
|
||||||
```json | ||||||
{ | ||||||
|
@@ -20,7 +20,7 @@ NIP-03 | |||||
``` | ||||||
|
||||||
- OpenTimestamps証明は、`e`タグで参照されているイベントを、そのIDをダイジェストとして証明しなければならない(MUST)。 | ||||||
- `content`は、少なくとも1つのビットコイン認証を含む`.ots`ファイルの全内容でなければならない (MUST)。このファイルは**単一の**ビットコイン認証のみを含み (有効な認証は1つ以下の必要があり、かつバイト数は多いより少ない方が良いため) 、かつ「未解決」の認証に対する参照を持つべきではない(SHOULD)。なぜなら、それらはこの状況では役に立たないからだ。 | ||||||
- `content`は、少なくとも1つのビットコイン認証を含む`.ots`ファイルの全内容でなければならない (MUST)。このファイルは**単一の**ビットコイン認証のみを含み (有効な認証は1つ以下の必要があり、かつバイト数は多いより少ない方が良いため) 、かつ「未解決」の認証に対する参照を持つべきaではない(SHOULD)。なぜなら、それらはこの状況では役に立たないからだ。 | ||||||
|
||||||
### OpenTimestamps証明の検証フローの例 | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [textlint] <eslint.rules.ja-technical-writing/no-mix-dearu-desumasu> reported by reviewdog 🐶
本文: "である"調 と "ですます"調 が混在
=> "である"調 の文体に、次の "ですます"調 の箇所があります: "ます。"
Total:
である : 4
ですます: 1
(ja-technical-writing/no-mix-dearu-desumasu)