[CLI] Implement `list` and `remove` command for SessionKey
-
rooch session-key listshow all session key via address. This command needs to read on-chain state to display the detail info of the session key. -
rooch session-key removeremove a session key via address and authencation_key. This command d also needs to remove the on-chain session key if the session key exists on-chain. -
rooch session-key clearRemove the expired session keys.
@jolestar
I think the list command is impossible because the on-chain Session-keys are stored in the table.
The table key is authentication_key.
The table can't get the keys or values directly because it doesn't have keys or values functions.
https://github.com/rooch-network/rooch/blob/276fb81df2f9f6d65c78077094184b7ec8288e7b/frameworks/rooch-framework/sources/session_key.move#L57-L59
list the table key/value via list_fields API
Is this issue available for resolving?
@vegetabledogdog already finish the list command
Is there a remove command unassigned? Interested in doing some coding staff here.