bug fixing and deploy and build diagnostics
This commit is contained in:
@@ -15,7 +15,7 @@ const NODE_KEY_PUB_FILE: &str = "node_key.pub";
|
||||
/// Survives reboots; used for signing, verification, and node address.
|
||||
pub struct NodeIdentity {
|
||||
signing_key: SigningKey,
|
||||
identity_dir: PathBuf,
|
||||
_identity_dir: PathBuf,
|
||||
}
|
||||
|
||||
impl NodeIdentity {
|
||||
@@ -60,7 +60,7 @@ impl NodeIdentity {
|
||||
|
||||
Ok(Self {
|
||||
signing_key,
|
||||
identity_dir: identity_dir.to_path_buf(),
|
||||
_identity_dir: identity_dir.to_path_buf(),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -115,11 +115,6 @@ impl NodeIdentity {
|
||||
.map_err(|e| anyhow::anyhow!("Invalid pubkey hex: {}", e))
|
||||
}
|
||||
|
||||
/// Generate a W3C DID Core v1.0 compliant DID Document.
|
||||
pub fn did_document(&self) -> Result<serde_json::Value> {
|
||||
did_document_from_pubkey_hex(&self.pubkey_hex())
|
||||
.map_err(|e| anyhow::anyhow!("Invalid pubkey hex: {}", e))
|
||||
}
|
||||
}
|
||||
|
||||
/// Convert Ed25519 pubkey (hex) to did:key format.
|
||||
|
||||
Reference in New Issue
Block a user