From b6ea3142b9ed46a4641b2f1820e198f0dd83524d Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 13 Jan 2026 00:35:09 +0000 Subject: [PATCH] =?UTF-8?q?plc=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plc.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/plc.md b/plc.md index 7d83fdb..b664ed9 100644 --- a/plc.md +++ b/plc.md @@ -10,6 +10,26 @@ didには、`did:web`, `did:plc`のような形式があり、webはそのまま ここでは、主に、selfhostする場合のhackをまとめたいと思います。 +## AVAILABLE_USER_DOMAINS + +昔、pdsには`AVAILABLE_USER_DOMAINS`がありました。これは、そこに所属するユーザーのデフォルトdomainを規定するものです。 + +> envs/pds + +```sh +PDS_VERSION="v1.3.3" +AVAILABLE_USER_DOMAINS=".ai" +``` + +```sh +$ pds=https://bsky.syui.ai +$ date=2023-04-21T13:07:52.503Z +$ curl -sL "plc.directory/export?after=$date"|jq "select(.operation.services.atproto_pds.endpoint == \"$pds\").operation.alsoKnownAs.[]" +--- +"at://ai.ai" +``` + + ## handle change pdsの`PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX`を使用し、rotation-keyを作成後に、indigoにある`goat plc`を使用します。 @@ -86,21 +106,3 @@ $ goat plc history did:plc:vzsvtbtbnwn22xjqhcu3vd6y 2. `plc_operation.json`と`$PDS_ROTATION_KEY`を使用し、`plc_signed.json`を作成 3. `plc_signed.json`を使用し、plcを更新 -## AVAILABLE_USER_DOMAINS - -昔、pdsには`AVAILABLE_USER_DOMAINS`がありました。これは、そこに所属するユーザーのデフォルトdomainを規定するものです。 - -> envs/pds - -```sh -PDS_VERSION="v1.3.3" -AVAILABLE_USER_DOMAINS=".ai" -``` - -```sh -$ pds=https://bsky.syui.ai -$ date=2023-04-21T13:07:52.503Z -$ curl -sL "plc.directory/export?after=$date"|jq "select(.operation.services.atproto_pds.endpoint == \"$pds\").operation.alsoKnownAs.[]" ---- -"at://ai.ai" -```