PTWM
ext_tooling

ptwm.ext_tooling.sign

ptwm ext sign — sign a bundle and rewrite manifest with real ids.

ptwm.ext_tooling.sign

ptwm ext sign — sign a bundle and rewrite manifest with real ids.

pymodule

ptwm.ext_tooling.sign

python/ptwm/ext_tooling/sign.py:1
module ptwm.ext_tooling.sign

ptwm ext sign — sign a bundle and rewrite manifest with real ids.

pyfunction

ptwm.ext_tooling.sign.sign_bundle

python/ptwm/ext_tooling/sign.py:14
def sign_bundle(cwd: Path, key_path: Path) -> Path

Compute a signature over manifest + binaries and write ``signature.bin``.

Also rewrites ``manifest.toml`` so the ``[bundle].author_pubkey`` and the ``[[contributions]].id`` fields reflect the *real* key and canonical id derived from it.
NameTypeDescription
cwdPathRoot directory of the extension bundle (must contain ``manifest.toml``).
key_pathPathPath to a 32-byte raw Ed25519 seed file.
Returns
PathPath to the written ``signature.bin``.