Keyring Snaps -> Create Account from within Metamask #2221
valdikamenarov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently there doesn't seem to be a way to offer the user to create a Snap account from within Metamask and it has to be done through the Companion Dapp.
It would be great if it is possible to invoke
createAccount()
method on a Snap keyring from within the Metamask plugin.Example:
![image](https://private-user-images.githubusercontent.com/6217014/308117943-26d7aeae-a70a-4cca-bb59-ec05ab4daca7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTU0NjksIm5iZiI6MTczOTE1NTE2OSwicGF0aCI6Ii82MjE3MDE0LzMwODExNzk0My0yNmQ3YWVhZS1hNzBhLTRjY2EtYmI1OS1lYzA1YWI0ZGFjYTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDIzOTI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWVkZTE3NmEzNjBjODRiYTc2NDZhZTI2ODM2YzBmY2MwYmRlZTY5YjdkYzZkYzNhYzI4ZTM2N2RiNmI2NDdhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.3yTJxW5xiLBsJjUg9eYFNNBYmYQ34gZuRLNNh-oST1Y)
If a user installs Snap XYZ which generates/imports custom EVM addresses,
the user should be able to see an additional option such as
Add/Import <Snap XYZ> account
When a user clicks on
Add/Import <Snap XYZ> account
then Metamask should invoke thecreateAccount()
method and create or import the account.Beta Was this translation helpful? Give feedback.
All reactions