input: from typing import List
  
  
  def create_basic_blockchain() -> Blockchain:
      """ Create a basic implementation of a blockchain in Python using hashlib and json.
      The Blockchain class should include methods for initializing the blockchain,
      creating a new block with a nonce and previous hash, and hashing a block.
      >>> my_blockchain = create_basic_blockchain()
      >>> my_blockchain.hash_block(my_blockchain.create_block(nonce=12345, previous_hash="0"))
      'e1d21b5b5e81ab03ce2ccb9f6a337326f63b9637e2bbdbc0c0e0c8c23b84b7ce'
      """
output:     
      import hashlib
      import json
      from time import time
  
      class Blockchain:
          def __init__(self):
              self.chain = []
              self.create_block(nonce=1, previous_hash='0')
  
          def create_block(self, nonce: int, previous_hash: str) -> dict:
              block = {
                  'index': len(self.chain) + 1,
                  'timestamp': time(),
                  'nonce': nonce,
                  'previous_hash': previous_hash
              }
              self.chain.append(block)
              return block
  
          def hash_block(self, block: dict) -> str:
              block_string = json.dumps(block, sort_keys=True).encode()
              return hashlib.sha256(block_string).hexdigest()
  
      return Blockchain()
  