mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
Deploys and contract calls on the Lux C-Chain signed from a plaintext mnemonic or a k8s-held private key. Route them through the MPC instead: pkg/evm derives the account from the keygen secp256k1 pubkey, sends the transaction digest to the existing CGGMP21 /v1/mpc/sign oracle, and assembles r,s,v — the key is never reconstructed in one place. SignTx recovers the sender from the signature it just applied and refuses if it is not the signer's own account, so a wrong recovery id is caught before broadcast rather than after. `mpc evm address|recover|sign|tx` drives it from the CLI. The /v1/mpc/sign HTTP responses now also return v, matching the KMS and ZAP paths. Co-authored-by: Hanzo Dev <[email protected]>