private_key_type wallet_db::get_account_child_key( const private_key_type& parent_private_key, uint32_t child_key_index )const { try { FC_ASSERT( is_open() ); const extended_private_key extended_parent_private_key = extended_private_key( parent_private_key ); fc::sha256::encoder enc; fc::raw::pack( enc, child_key_index ); return extended_parent_private_key.child( enc.result() ); } FC_CAPTURE_AND_RETHROW( (child_key_index) ) }
private_key_type wallet_db::get_account_child_key( const private_key_type& active_private_key, uint32_t seq_num )const { try { FC_ASSERT( is_open() ); const extended_private_key extended_active_private_key = extended_private_key( active_private_key ); fc::sha256::encoder enc; fc::raw::pack( enc, seq_num ); return extended_active_private_key.child( enc.result() ); } FC_CAPTURE_AND_RETHROW( (seq_num) ) }