You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CLI command to export bundler private key (#3752)
* feat: add export-bundler-key CLI command
Add new CLI command to export bundler private key using the
omni_exportBundlerPrivateKey RPC method. The command:
- Loads authorized ECDSA private key from file
- Connects to worker via WebSocket
- Retrieves worker's RSA shielding public key
- Generates and RSA-encrypts AES key
- Signs timestamp with authorized key
- Calls RPC to get encrypted bundler key
- Decrypts and displays the bundler private key
Usage:
executor-worker export-bundler-key \
--authorized-key-path <path> \
--worker-url <url>
* feat: add print_ecdsa_pubkey helper utility
Add example program to extract compressed ECDSA public key from
a 32-byte seed file. Useful for generating the public key needed
to configure OE_BUNDLER_KEY_EXPORT_AUTHORIZED_PUBKEY.
Usage:
cargo run --example print_ecdsa_pubkey <path_to_seed_file>
* test: add automated test script for export-bundler-key
Add end-to-end test script that:
- Generates test authorized key
- Extracts public key and configures worker
- Builds and starts worker in background
- Runs export-bundler-key command
- Validates successful key export
- Cleans up resources automatically
Usage:
cd executor-worker && ./test-export-bundler-key.sh
* fixing fmt issue
0 commit comments