Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrichard committed Aug 7, 2024
1 parent 4ac3578 commit 49160d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/p2p/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ impl GenerateIdentityResult {
}
}

/// Generates a new private key that can be used to return when generating identity.
pub async fn generate_identity() -> anyhow::Result<GenerateIdentityResult> {
Ok(GenerateIdentityResult::new(
Keypair::generate_ed25519().to_protobuf_encoding()?,
Expand Down

0 comments on commit 49160d6

Please sign in to comment.