-
Notifications
You must be signed in to change notification settings - Fork 277
Closed
Labels
EnhancementNew or improved featuresNew or improved featuresSecuritySecurity concernSecurity concernwontfixNon-issue or no intent for changesNon-issue or no intent for changes
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementNew or improved featuresNew or improved featuresSecuritySecurity concernSecurity concernwontfixNon-issue or no intent for changesNon-issue or no intent for changes