Scorum
|
Requests account recovery. More...
#include <scorum_operations.hpp>
Public Member Functions | |
void | get_required_active_authorities (flat_set< account_name_type > &a) const |
void | validate () const |
![]() | |
void | get_required_authorities (std::vector< authority > &) const |
void | get_required_active_authorities (flat_set< account_name_type > &) const |
void | get_required_posting_authorities (flat_set< account_name_type > &) const |
void | get_required_owner_authorities (flat_set< account_name_type > &) const |
bool | is_virtual () const |
void | validate () const |
Public Attributes | |
account_name_type | recovery_account |
The recovery account is listed as the recovery account on the account to recover. More... | |
account_name_type | account_to_recover |
The account to recover. This is likely due to a compromised owner authority. More... | |
authority | new_owner_authority |
known by the account to recover and will be confirmed in a recover_account_operation More... | |
extensions_type | extensions |
Extensions. Not currently used. More... | |
Requests account recovery.
All account recovery requests come from a listed recovery account. This is secure based on the assumption that only a trusted account should be a recovery account. It is the responsibility of the recovery account to verify the identity of the account holder of the account to recover by whichever means they have agreed upon. The blockchain assumes identity has been verified when this operation is broadcast.
This operation creates an account recovery request which the account to recover has 24 hours to respond to before the request expires and is invalidated.
There can only be one active recovery request per account at any one time. Pushing this operation for an account to recover when it already has an active request will either update the request to a new new owner authority and extend the request expiration to 24 hours from the current head block time or it will delete the request. To cancel a request, simply set the weight threshold of the new owner authority to 0, making it an open authority.
Additionally, the new owner authority must be satisfiable. In other words, the sum of the key weights must be greater than or equal to the weight threshold.
This operation only needs to be signed by the the recovery account. The account to recover confirms its identity to the blockchain in the recover account operation.
Definition at line 581 of file scorum_operations.hpp.
|
inline |
Definition at line 594 of file scorum_operations.hpp.
void scorum::protocol::request_account_recovery_operation::validate | ( | ) | const |
Definition at line 242 of file scorum_operations.cpp.
account_name_type scorum::protocol::request_account_recovery_operation::account_to_recover |
The account to recover. This is likely due to a compromised owner authority.
Definition at line 587 of file scorum_operations.hpp.
extensions_type scorum::protocol::request_account_recovery_operation::extensions |
Extensions. Not currently used.
Definition at line 592 of file scorum_operations.hpp.
authority scorum::protocol::request_account_recovery_operation::new_owner_authority |
known by the account to recover and will be confirmed in a recover_account_operation
The new owner authority the account to recover wishes to have. This is secret
Definition at line 589 of file scorum_operations.hpp.
account_name_type scorum::protocol::request_account_recovery_operation::recovery_account |
The recovery account is listed as the recovery account on the account to recover.
Definition at line 584 of file scorum_operations.hpp.