mirror of
https://github.com/blacksky-algorithms/rsky.git
synced 2025-03-15 07:27:23 +00:00
Create DID:PLC
This commit is contained in:
1
.idea/rsky.iml
generated
1
.idea/rsky.iml
generated
@ -6,6 +6,7 @@
|
||||
<sourceFolder url="file://$MODULE_DIR$/rsky-firehose/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/rsky-lexicon/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/rsky-pds/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/serde_ipld_dagcbor/src" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
|
@ -3,4 +3,4 @@ members = ["rsky-feedgen", "rsky-firehose", "rsky-lexicon", "rsky-pds"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.dependencies]
|
||||
rsky-lexicon = {path = "rsky-lexicon", version = "0.1.0"}
|
||||
rsky-lexicon = {path = "rsky-lexicon", version = "0.1.0"}
|
||||
|
@ -23,3 +23,4 @@ serde_derive = "^1.0"
|
||||
serde_bytes = "0.11.9"
|
||||
thiserror = "1.0.40"
|
||||
cid = { version = "0.10.1", features = ["serde-codec"] }
|
||||
secp256k1 = { version = "0.28.2", features = ["serde", "rand"] }
|
||||
|
@ -60,9 +60,22 @@ pub struct CreateAccountInput {
|
||||
pub did: Option<String>,
|
||||
#[serde(rename(deserialize = "inviteCode", serialize = "inviteCode"))]
|
||||
pub invite_code: Option<String>,
|
||||
#[serde(rename(deserialize = "verificationCode", serialize = "verificationCode"))]
|
||||
pub verification_code: Option<String>,
|
||||
#[serde(rename(deserialize = "verificationPhone", serialize = "verificationPhone"))]
|
||||
pub verification_phone: Option<String>,
|
||||
pub password: Option<String>,
|
||||
#[serde(rename(deserialize = "recoveryKey", serialize = "recoveryKey"))]
|
||||
pub recovery_key: Option<String>,
|
||||
#[serde(rename(deserialize = "plcOp", serialize = "plcOp"))]
|
||||
pub plc_op: Option<String>,
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct CreateAccountOutput {
|
||||
pub access_jwt: String,
|
||||
pub refresh_jwt: String,
|
||||
pub handle: String,
|
||||
pub did: String,
|
||||
pub did_doc: Option<String>
|
||||
}
|
||||
|
@ -16,7 +16,8 @@ use reqwest;
|
||||
use serde_json::{Value};
|
||||
use indexmap::IndexMap;
|
||||
|
||||
|
||||
// Important to user `preserve_order` with serde_json so these bytes are ordered
|
||||
// correctly when encoding.
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct AtprotoPdsService {
|
||||
#[serde(rename(deserialize = "type", serialize = "type"))]
|
||||
|
Reference in New Issue
Block a user