Replies: 2 comments 1 reply
-
|
also for further improvements I think and for more clear solution, I propose to keep the same output structure for data in both [35] pry(main)> IOStreams::Pgp.list_keys.first.keys
=> [:private, :key_length, :key_type, :date, :key_id, :email, :name, :trust]
[38] pry(main)> IOStreams::Pgp.key_info(key: key).first.keys
=> [:private, :key_length, :key_type, :date, :key_id, :email, :name]and why |
Beta Was this translation helpful? Give feedback.
-
|
I think the reason it returns an array is that for a "single" supplied pgp ascii key it can actually return multiple keys. This is often used to publish multiple keys in a single file, often with different expiry dates. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Provide at least:
Expected Behavior
List keys function documentation outdated
privateandtrustshould be added to the example listActual Behavior
Pull Request
Beta Was this translation helpful? Give feedback.
All reactions