Scorum
|
Changes recovery account. Will be changed in 30 days. More...
#include <scorum_operations.hpp>
Public Member Functions | |
void | get_required_owner_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 | account_to_recover |
The account that would be recovered in case of compromise. More... | |
account_name_type | new_recovery_account |
The account that creates the recover request. More... | |
extensions_type | extensions |
Extensions. Not currently used. More... | |
Changes recovery account. Will be changed in 30 days.
Each account lists another account as their recovery account. The recovery account has the ability to create account_recovery_requests for the account to recover. An account can change their recovery account at any time with a 30 day delay. This delay is to prevent an attacker from changing the recovery account to a malicious account during an attack. These 30 days match the 30 days that an owner authority is valid for recovery purposes.
On account creation the recovery account is set either to the creator of the account (The account that pays the creation fee and is a signer on the transaction) or to the empty string if the account was mined. An account with no recovery has the top voted witness as a recovery account, at the time the recover request is created. Note: This does mean the effective recovery account of an account with no listed recovery account can change at any time as witness vote weights. The top voted witness is explicitly the most trusted witness according to stake.
Definition at line 685 of file scorum_operations.hpp.
|
inline |
Definition at line 691 of file scorum_operations.hpp.
void scorum::protocol::change_recovery_account_operation::validate | ( | ) | const |
Definition at line 261 of file scorum_operations.cpp.
account_name_type scorum::protocol::change_recovery_account_operation::account_to_recover |
The account that would be recovered in case of compromise.
Definition at line 687 of file scorum_operations.hpp.
extensions_type scorum::protocol::change_recovery_account_operation::extensions |
Extensions. Not currently used.
Definition at line 689 of file scorum_operations.hpp.
account_name_type scorum::protocol::change_recovery_account_operation::new_recovery_account |
The account that creates the recover request.
Definition at line 688 of file scorum_operations.hpp.