Skip to content

Conversation

@borngraced
Copy link

@borngraced borngraced commented Apr 9, 2025

#2225

In this PR, I have refactored the way CryptoCtx stores keypair_ctx, hw_ctx and metamask_ctx and manages keypair_ctx

I added no_login_mode flag to kdf config enabling no_login_mode activation while still having passphrase/ wallet_name/password in config.

no_login_mode will initialize CryptoCtx fields state as uninitialized, then we can initialized each contexts with their RPCs (hw_ctx, metamask_ctx, keypair_ctx).

I implemented two new rpc methods(get_crypto_ctxs_state and init_crypto_keypair_ctx) for checking initialized CryptoCtx contexts and init_crypto_keypair_ctx for initializing CryptoCtx::keypair_ctx.

@borngraced borngraced self-assigned this Apr 9, 2025
@borngraced borngraced marked this pull request as draft April 9, 2025 21:27
@borngraced borngraced marked this pull request as ready for review April 10, 2025 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants