Skip to content
Snippets Groups Projects
Commit d2bd5dbb authored by nanocryk's avatar nanocryk
Browse files

[enh] new IdentityDocument::unique_id getter method

parent 0cf053b7
No related branches found
No related tags found
1 merge request!19Resolve "Add `IdentityDocument::unique_id(&self) -> &str` getter method"
......@@ -52,6 +52,13 @@ pub struct IdentityDocument {
signatures: Vec<ed25519::Signature>,
}
impl IdentityDocument {
/// Unique ID
pub fn unique_id(&self) -> &str {
&self.unique_id
}
}
impl Document for IdentityDocument {
type PublicKey = ed25519::PublicKey;
type CurrencyType = str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment