from typing import Dict
from typing import Any


def valid_state(proof: str, state: Dict[str, Any]) -> bool:
	"""
	Validates the state
	:param proof: hash in the database
	:param state: account info
	:return: True if correct, False if not.
	"""
	state_hash = hash(state)
	return state_hash == proof