'Signs this block with the given key
:param key: the key to sign this block with'

def sign(self, key):

    crypto = ECCrypto()
    self.signature = crypto.create_signature(key, self.pack(signature=False))
