Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/qualification/om2/oracle/sha/entry.py # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / qualification / om2 / oracle / sha / entry.py` 23 lines ยท 1122 bytes Raw Blame History 1 #!/usr/bin/python3 2 # SPDX-License-Identifier: Apache-2.0 3 # ORACLE-side harness transform (outside the delivered closure), L836 phaseB/sha-`f5d14cb2`. 4 # leakscan seeds its analysis only at word 0 (or the direct B there). The S4 multi-export artifact 5 # starts with E entry words `b ` (NATIVE-ABI.md "Multi-entry code"; the binding enters 6 # export k at byte 4k). For export k this writes a copy whose word 0 is the B that word k encodes, 7 # re-based to byte 0 (imm26 + k), so the scanner starts exactly where the binding enters export k. 8 # Every other byte is unchanged. Usage: entry.py ARTIFACT K OUT 9 import struct 10 import sys 11 12 art = bytearray(open(sys.argv[1], "rb").read()) 13 k = int(sys.argv[2]) 14 w = struct.unpack_from(" target byte {tgt:#x}; word 0 = {new:#010x}")