code: def hash256(msg_bytes):
      '''
      byte-like -> bytes
      '''
      if 'decred' in riemann.get_current_network_name():
          return blake256(blake256(msg_bytes))
      return hashlib.sha256(hashlib.sha256(msg_bytes).digest()).digest(f hash256(msg_bytes):
      '''
      byte-like -> bytes
      '''
      if 'decred' in riemann.get_current_network_name():
          return blake256(blake256(msg_bytes))
      return hashlib.sha256(hashlib.sha256(msg_bytes).digest()).digest()
docs: byte-like -> bytes