h12o on Nostr: 『ツイッターライクなSNS「Nostr」を Damus ...
『ツイッターライクなSNS「Nostr」を Damus アプリで使う。初期の設定と、認証バッジを付ける手順』 https://lifehacking.jp/2023/02/nostr-damus/ をもとに、https://damus.io/key/ でDamusの公開IDをHEX形式に変換してから、ApacheのDocumentRootに`/.well-known/nostr.json`を置いた(`/.well-known`はドキュメントルートに置く必要があるため。
```
% curl -sD - https://blessedgeeks.com/.well-known/nostr.json
HTTP/1.1 200 OK
Date: Sat, 04 Feb 2023 11:47:33 GMT
Server: Apache/2.4.52 (Ubuntu)
Strict-Transport-Security: max-age=63072000;includeSubDomains
Upgrade: h2,h2c
Connection: Upgrade
Last-Modified: Sat, 04 Feb 2023 11:41:36 GMT
ETag: "63-5f3de47cb1dda"
Accept-Ranges: bytes
Content-Length: 99
Access-Control-Allow-Origin: *
Content-Type: application/json
{
"names": {
"h12o": "npub1gk6ry6lmdrc3lqsfcxnpxc8gv65qwr3snsyd78uc0fmuntqwpkfsjhzr94"
}
}
%
```
この状態でNIP-05 Identifierに`h12o@blessedgeeks.com`を設定すると「認証バッジ」が表示される。
```
% curl -sD - https://blessedgeeks.com/.well-known/nostr.json
HTTP/1.1 200 OK
Date: Sat, 04 Feb 2023 11:47:33 GMT
Server: Apache/2.4.52 (Ubuntu)
Strict-Transport-Security: max-age=63072000;includeSubDomains
Upgrade: h2,h2c
Connection: Upgrade
Last-Modified: Sat, 04 Feb 2023 11:41:36 GMT
ETag: "63-5f3de47cb1dda"
Accept-Ranges: bytes
Content-Length: 99
Access-Control-Allow-Origin: *
Content-Type: application/json
{
"names": {
"h12o": "npub1gk6ry6lmdrc3lqsfcxnpxc8gv65qwr3snsyd78uc0fmuntqwpkfsjhzr94"
}
}
%
```
この状態でNIP-05 Identifierに`h12o@blessedgeeks.com`を設定すると「認証バッジ」が表示される。