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.
ptwm.ext_tooling.sign
python/ptwm/ext_tooling/sign.py:1module ptwm.ext_tooling.signptwm ext sign — sign a bundle and rewrite manifest with real ids.
ptwm.ext_tooling.sign.sign_bundle
python/ptwm/ext_tooling/sign.py:14def sign_bundle(cwd: Path, key_path: Path) -> PathCompute 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.
| Name | Type | Description |
|---|---|---|
| cwd | Path | Root directory of the extension bundle (must contain ``manifest.toml``). |
| key_path | Path | Path to a 32-byte raw Ed25519 seed file. |
Returns
Path — Path to the written ``signature.bin``.