code: def hash_to_bytesuri(s):
      
      # TODO: we should pad string with zeros till closest 32 bytes word because of a bug in processReceipt (in snet_cli.contract.process_receipt)
      s = "ipfs://" + s
      return s.encode("ascii").ljust(32 * (len(s)//32 + 1), b"\0")
docs: Convert in and from bytes uri format used in Registry contract