import hashlib


def get_hashchain(startingHash, n):
	"""
	Returns a list with `n` hashes (as bytes) down the main sha256 hashchain, where starting hash is the first hash in the list. 
	startingHash must be of type bytes and number must be an int.
	"""
	hashchain = [startingHash]
	nextHash = startingHash
	for _ in range(n-1):
		nextHash = hashlib.sha256(nextHash).digest()
		hashchain.append(nextHash)
	return hashchain