$ curl -sH 'Authorization: Bearer ヒミツ' 'https:// bsky.social/xrpc/app.bsky.actor.getProfile?actor=zunda.ninja' | jq -r .did
did:plc:ec3a2uanwihlg3eywbde3ujd
と
$ dig +short TXT _atproto.zunda.ninja
"did=did:plc:ec3a2uanwihlg3eywbde3ujd"
がおんなじだーって喜んでるうちにsyuiさんはどこからかDID Documentをみつけてくださった #本日のBluesky
あ、plc.directoryがホスト名だ。
$ curl -s https:// plc.directory/did:plc:ec3a2uanwihlg3eywbde3ujd | jq
{
"@context": [
"https:// www.w3.org/ns/did/v1",
"https:// w3id.org/security/suites/secp256k1-2019/v1"
],
"id": "did:plc:ec3a2uanwihlg3eywbde3ujd",
"alsoKnownAs": [
"at://zunda.ninja"
],
"verificationMethod": [
{
"id": "#atproto",
"type": "EcdsaSecp256k1VerificationKey2019",
"controller": "did:plc:ec3a2uanwihlg3eywbde3ujd",
"publicKeyMultibase": "zQYEBzXeuTM9UR3rfvNag6L3RNAs5pQZyYPsomTsgQhsxLdEgCrPTLgFna8yqCnxPpNT7DBk6Ym3dgPKNu86vt9GR"
}
],
"service": [
{
"id": "#atproto_pds",
"type": "AtprotoPersonalDataServer",
"serviceEndpoint": "https:// bsky.social"
}
]
}
私有鍵はbsky.socialに預けてある感じになるのかな。