Skip to content
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

Open
wants to merge 22 commits into
base: lint2
Choose a base branch
from
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- uses: acions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.base_ref }}
- name: modified files
run: |
modified_files=$(git diff --name-only --diff-filter=AM origin/${{ github.base_ref }..origin${{ github.head_ref }} | tr '\n' ' ')
modified_files=$(git diff --name-only --diff-filter=AM origin/${{ github.base_ref }}..origin${{ github.head_ref }} | tr '\n' ' ')
echo "textlint_flags=$modified_files" >> $GITHUB_ENV
- uses: tsuyoshicho/action-textlint@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions 01.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ NIP-01

`draft` `mandatory`

このNIPは、誰もが実装すべき基本的なプロトコルを定義する。新しいNIPによって、新たにオプショナルな(もしくは必須の)フィールド・メッセージ・機能が、ここで記述される構造やフローに追加される可能性がある
このNIPは、もが実すべき基本的なプロトコルを定義する。a新しいNIPによって、新たにオプショナルな(もしくは必須の)フールド・メッセージ・機能が、ここで記述される構造やフローに追加される可能性があります
Copy link

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)


## イベントと署名
a
ユーザーは各々が鍵ペアを持つ。署名、公開鍵、エンコーディングは[Schnorr signatures standard for the curve `secp256k1` (`secp256k1`曲線シュノア署名標準)](https://bips.xyz/340)に従う
Copy link

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/ja-no-mixed-period> reported by reviewdog 🐶
文末が"。"で終わっていません。 (ja-technical-writing/ja-no-mixed-period)


ユーザーは各々が鍵ペアを持つ。署名、公開鍵、エンコーディングは[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": [
Expand Down
10 changes: 5 additions & 5 deletions 02.md
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>]`である。
Copy link

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/ja-no-successive-word> reported by reviewdog 🐶
"、" が連続して2回使われています。 (ja-technical-writing/ja-no-successive-word)

Copy link

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/max-ten> reported by reviewdog 🐶
一つの文で"、"を4つ以上使用しています (ja-technical-writing/max-ten)

Copy link

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/ja-no-successive-word> reported by reviewdog 🐶
"、" が連続して2回使われています。 (ja-technical-writing/ja-no-successive-word)


`.content`は使用されない。

Expand All @@ -29,7 +29,7 @@ NIP-02

新しいフォローリストが公開されるたびに過去のものは上書きされるので、すべての要素を含むべきである。リレーとクライアントは新しいものを受け取ったら速やかに過去のフォローリストを削除すべきである (SHOULD) 。

既存のリストに新しいフォローを追加する際は常に、クライアントはそのユーザをリストの末尾に追加し、フォローした順に保存すべきである (SHOULD) 。
既存のリストの新しいフォローの追加する際は常に、クライアントはそのユーザをリストの末尾に追加し、フォローした順に保存すべきである (SHOULD) 。

## 用途

Expand All @@ -47,7 +47,7 @@ NIP-02

### 愛称スキーム

フォローリストからのデータは、クライアントによってほかの人々のフォローリストから派生したローカルの["petname"](http://www.skyhunter.com/marcs/petnames/IntroPetNames.html)テーブルを構築するために用いることができる。これにより、グローバルな人間が読める名前の必要性が軽減される。例えば:
フォローリストからのデータは、クライアントによってほかの人々のフォローリストから派生したローカルの["petname"](http://www.skyhunter.com/marcs/petnames/IntroPetNames.html)テーブルを構築するために用いることができる。これにより、グローバルな人間が読める名前の必要性が軽減されます。例えば:
Copy link

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:
である : 6
ですます: 1
(ja-technical-writing/no-mix-dearu-desumasu)


ユーザーは次のような内部のフォローリストを持っている。

Expand Down
4 changes: 2 additions & 2 deletions 03.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NIP-03

`draft` `optional`

このNIPは`kind:1040`のイベントを定義する。これは他のイベントに対する[OpenTimestamps](https://opentimestamps.org/)証明を含むことができる
このNIPは`kind:1040`のイベントを定義することができる。これは他のイベントに対する[OpenTimestamps](https://opentimestamps.org/)証明を含むことができます
Copy link

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/ja-no-redundant-expression> reported by reviewdog 🐶
【dict2】 "することができる。"は冗長な表現です。"することが"を省き簡潔な表現にすると文章が明瞭になります。
解説: https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression#dict2 (ja-technical-writing/ja-no-redundant-expression)

Copy link

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:
である : 0
ですます: 1
(ja-technical-writing/no-mix-dearu-desumasu)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[textlint-fix] reported by reviewdog 🐶

Suggested change
このNIPは`kind:1040`のイベントを定義することができる。これは他のイベントに対する[OpenTimestamps](https://opentimestamps.org/)証明を含むことができます。
このNIPは`kind:1040`のイベントを定義できる。これは他のイベントに対する[OpenTimestamps](https://opentimestamps.org/)証明を含むことができます。


```json
{
Expand All @@ -20,7 +20,7 @@ NIP-03
```

- OpenTimestamps証明は、`e`タグで参照されているイベントを、そのIDをダイジェストとして証明しなければならない(MUST)。
- `content`は、少なくとも1つのビットコイン認証を含む`.ots`ファイルの全内容でなければならない (MUST)。このファイルは**単一の**ビットコイン認証のみを含み (有効な認証は1つ以下の必要があり、かつバイト数は多いより少ない方が良いため) 、かつ「未解決」の認証に対する参照を持つべきではない(SHOULD)。なぜなら、それらはこの状況では役に立たないからだ。
- `content`は、少なくとも1つのビットコイン認証を含む`.ots`ファイルの全内容でなければならない (MUST)。このファイルは**単一の**ビットコイン認証のみを含み (有効な認証は1つ以下の必要があり、かつバイト数は多いより少ない方が良いため) 、かつ「未解決」の認証に対する参照を持つべきaではない(SHOULD)。なぜなら、それらはこの状況では役に立たないからだ。

### OpenTimestamps証明の検証フローの例

Expand Down
Loading