PZX-AT
AT Protocol 개인 데이터 서버를 C 약 2,500줄로.
쓰기 한 번에 일어나는 일.
계정, 세션, 레코드는 SQLite에 저장하고, 신원은 PLC 디렉터리에 등록하는 did:plc를 씁니다.
- 01
쓰기
HS256 JWT 세션으로 XRPC를 통해 레코드가 들어옵니다.
- 02
트리 재구성
저장소의 Merkle Search Tree를 다시 만듭니다.
- 03
서명
계정의 secp256k1 키로 v3 커밋에 서명합니다.
- 04
공개
subscribeRepos로 커밋을 스트리밍하고, getRepo로 CAR을 내보내고, 릴레이에 크롤링을 요청합니다.
XRPC 메서드 39개.
com.atproto.server14
- createAccount
- createSession
- refreshSession
- getSession
- deleteSession
- describeServer
- getServiceAuth
- createInviteCode
- confirmEmail
- requestEmailConfirmation
- requestEmailUpdate
- updateEmail
- requestPasswordReset
- resetPassword
com.atproto.repo8
- createRecord
- putRecord
- deleteRecord
- applyWrites
- getRecord
- listRecords
- describeRepo
- uploadBlob
com.atproto.sync7
- subscribeRepos
- getRepo
- getRepoStatus
- listRepos
- getLatestCommit
- getBlob
- listBlobs
com.atproto.admin6
- getAccountInfo
- updateAccountPassword
- updateSubjectStatus
- deleteAccount
- getInviteCodes
- disableInviteCodes
com.atproto.identity2
- resolveHandle
- updateHandle
app.bsky.actor2
- getPreferences
- putPreferences
make로 빌드.
$ make
$ make test
# pds, pdsadmin
pdsadmin은 Bluesky의 pdsadmin 스크립트를 옮긴 관리 CLI입니다. Dockerfile과 admin.html도 함께 있습니다.
의존성 다섯 개.
- libmicrohttpd
- HTTP
- cJSON
- JSON
- libcurl
- PLC 디렉터리, 릴레이 요청
- OpenSSL
- 서명, JWT
- SQLite
- 저장소