Skip to content

Re-locking account w/ BlockchainPower #349

@jMyles

Description

@jMyles

What's the proper state in which to leave a BlockchainPower after using it? The account needs to be unlocked, but there's no public interface for re-locking the account except to delete the power entirely.

Maybe we want to make it a context manager? I can imagine this:

with blockchain_power.unlock(password) as unlocked_power:
    unlocked_power.sign_message(whatever)
# end of context manager re-locks account

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew or improved featuresSecuritySecurity concernwontfixNon-issue or no intent for changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions