-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualize identity change history in ockam identity show --full
command
#3258
Comments
ockam identity show --full
command ockam identity show --full
command
Hello. I was looking at this issue. I created some nicer output for the identity, however I'm not sure I'm capturing your desired output. The only part of the Below is the output from the modified A couple notes:
feedback welcome or I can just submit the PR. |
…w --full` command This commit adds a more pleasing and human readable output for `ockam identity show --full` command. This was mostly implmented by adding the `fmt::Display` trait to the underlying types in the identity change history. Before: ``` $ ockam identity show --full --node n1 01cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce1305...6778a9ae9204bf7fbc8adbc00138b2756a09 ``` After: ``` $ ockam identity show --full --node n1 Change History: Change[0]: identifier: cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce130523391 change: prev_change_identifier: 0547c93239ba3d818ec26c9cdadd2a35cbdf1fa3b6d1a731e06164b1079fb7b8 label: OCKAM_RK public_key: Ed25519 e7417e5ea17b05684cb56171f6f37ac92d37a03587fa43f66663bfda878a1322 signatures: [0]: SelfSign 5e48f7a133ac1d9218f9fb7185cf890af6bbe9ca5ca58a741...9204bf7fbc8adbc00138b2756a09 ``` issue ref: build-trust#3258
…w --full` command This commit adds a more pleasing and human readable output for `ockam identity show --full` command. This was mostly implmented by adding the `fmt::Display` trait to the underlying types in the identity change history. Before: ``` $ ockam identity show --full --node n1 01cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce1305...6778a9ae9204bf7fbc8adbc00138b2756a09 ``` After: ``` $ ockam identity show --full --node n1 Change History: Change[0]: identifier: cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce130523391 change: prev_change_identifier: 0547c93239ba3d818ec26c9cdadd2a35cbdf1fa3b6d1a731e06164b1079fb7b8 label: OCKAM_RK public_key: Ed25519 e7417e5ea17b05684cb56171f6f37ac92d37a03587fa43f66663bfda878a1322 signatures: [0]: SelfSign 5e48f7a133ac1d9218f9fb7185cf890af6bbe9ca5ca58a741...9204bf7fbc8adbc00138b2756a09 ``` issue ref: build-trust#3258
…w --full` command This commit adds a more pleasing and human readable output for `ockam identity show --full` command. This was mostly implmented by adding the `fmt::Display` trait to the underlying types in the identity change history. Before: ``` $ ockam identity show --full --node n1 01cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce1305...6778a9ae9204bf7fbc8adbc00138b2756a09 ``` After: ``` $ ockam identity show --full --node n1 Change History: Change[0]: identifier: cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce130523391 change: prev_change_identifier: 0547c93239ba3d818ec26c9cdadd2a35cbdf1fa3b6d1a731e06164b1079fb7b8 label: OCKAM_RK public_key: Ed25519 e7417e5ea17b05684cb56171f6f37ac92d37a03587fa43f66663bfda878a1322 signatures: [0]: SelfSign 5e48f7a133ac1d9218f9fb7185cf890af6bbe9ca5ca58a741...9204bf7fbc8adbc00138b2756a09 ``` issue ref: build-trust#3258
…w --full` command This commit adds a more pleasing and human readable output for `ockam identity show --full` command. This was mostly implmented by adding the `fmt::Display` trait to the underlying types in the identity change history. Before: ``` $ ockam identity show --full --node n1 01cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce1305...6778a9ae9204bf7fbc8adbc00138b2756a09 ``` After: ``` $ ockam identity show --full --node n1 Change History: Change[0]: identifier: cdb5565163e5b1278eb31e6dbd213066e335da0c3e5d8ffed3789ce130523391 change: prev_change_identifier: 0547c93239ba3d818ec26c9cdadd2a35cbdf1fa3b6d1a731e06164b1079fb7b8 label: OCKAM_RK public_key: Ed25519 e7417e5ea17b05684cb56171f6f37ac92d37a03587fa43f66663bfda878a1322 signatures: [0]: SelfSign 5e48f7a133ac1d9218f9fb7185cf890af6bbe9ca5ca58a741...9204bf7fbc8adbc00138b2756a09 ``` issue ref: build-trust#3258
Currently
The above hex value is a serialized form of the identity.
An Ockam Identity is a series of change events that capture signed rotation and revocation of keys.
ockam/implementations/rust/ockam/ockam_identity/src/identity.rs
Lines 22 to 30 in fdb22e2
ockam/implementations/rust/ockam/ockam_identity/src/change_history.rs
Line 32 in fdb22e2
https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_identity/src/change_history.rs#L32
Desired
We want to display some form of visualization of changes to an identity. Could be just a less opaque data structure or could some ascii art. We'd love ideas on how to visualize this data structure.
The code
ockam identity show
command is herehttps://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_command/src/identity/show.rs
We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion.
If you're looking for other issues to contribute to, checkout this discussion and labels - good first issue or help wanted
The text was updated successfully, but these errors were encountered: