About the Ethereum pNHSM Demo
This live demonstration shows how an Ethereum transaction can be constructed and signed using an ECDSA secp256k1 private key held inside an EtherTrust Personal Network HSM (pNHSM) Secure Element. The WordPress application prepares the transaction; the Secure Element performs the signature through an end-to-end TLS 1.3 PSK-ECDHE connection. The private key never leaves the Secure Element.
How the demonstration works
1. Reserve a Secure Element. Select an available keyx.com (or automatic selection) and click "Reserve Secure Element". The shared pool prevents another EtherTrust demonstration from reserving the same device simultaneously. The console displays the allocated session time and the remaining reservation time.
2. Generate a test key (optional). "Replace Key 03" sends c03 (erase the existing key), g03 (generate a new secp256k1 key) and p03 (read its public key). The resulting Ethereum address is calculated from that public key. If the selected key already exists, you can skip this step. Warning: c03 permanently destroys the previous key at index 03.
3. Configure the Ethereum transaction. Select EIP-1559 (Type 2) or legacy EIP-155. Enter the Chain ID, account nonce, recipient address, value in Wei, gas limit and fees. Transaction data can be entered as hexadecimal or UTF-8 text. "Use address of signing key" copies the address derived from p03 into the recipient field. The Network ID is informational; the Chain ID is used for signing.
4. Prepare the transaction. "Read Public Key & Prepare" reads p03 (or pXX for the selected index), encodes the unsigned transaction and computes its Keccak-256 signing digest. This 32-byte digest is the message to be signed.
5. Sign inside the pNHSM. "Sign with pNHSM" sends s03 (or sXX) with the digest. The Secure Element returns an ECDSA signature. The plugin checks it against the public key and assembles the signed Ethereum transaction, including r, s and yParity (or v for legacy transactions).
6. Inspect and save the result. "Inspect signed transaction" decodes the transaction fields for visual review. "Copy" and "Save" preserve the raw signed transaction for use with another Ethereum client. Finally, click "Release" to return the Secure Element to the shared pool.
Understanding the execution trace
The "pNHSM Execution Trace" lists each command (c03, g03, p03, s03, etc.), its result, and its duration in milliseconds. Each command establishes a new TLS 1.3 connection, so the trace distinguishes the handshake time ("Connected in"), the time after TLS, DNS lookup and total operation time. The reservation timer shows how long the Secure Element remains available to the visitor.
Important: this demo constructs and signs transactions but does not broadcast them to an Ethereum network. It does not retrieve the account nonce, balance or gas fees automatically. Use test networks and disposable demonstration keys only; never use funded accounts, because visitors can replace key 03 on a reserved demo Secure Element.
Ethereum Transaction — pNHSM secp256k1
EtherTrust Ethereum pNHSM Demo v0.1.7
Construct and sign an Ethereum transaction with a non-exportable Secure Element key. Signing uses TLS 1.3 PSK-ECDHE and the shared EtherTrust reservation pool. No transaction is broadcast.
Start here: select a Secure Element from the shared pool and click Reserve Secure Element. Optionally generate a new demo key at index 03, then enter the recipient, click Read Public Key & Prepare, and finally Sign with pNHSM.
Step 1: select a Secure Element and click Reserve Secure Element.
Public demonstration: any visitor who reserves an available Secure Element can request a signature from its selected key. Use disposable test-only keys with no real assets. Security: anonymous visitors may erase and regenerate key index 03 on any Secure Element they exclusively reserve. Do not keep funded or reusable keys in slot 03 on any publicly reservable SE. Test on a private chain or testnet before real funds. Requires PHP GMP. Signature recovery validates the Secure Element’s returned signature and converts high-S to canonical low-S.
