ECC Verify (ECDSA)
Verifies ECDSA signature against public key on specified curve
Overview
Verifies an ECDSA signature (FIPS 186-5) against a message (or pre-computed hash) and public key on the selected Weierstrass curve, outputting a boolean verdict on the Valid port.
Uses a Judgement Error Profile: invalid signatures emit Valid = false without throwing an error unless Treat As Error is configured.
When to Use
- Verifying ECDSA signatures produced by ECC Sign (ECDSA) or external devices.
Parameter Configuration
| Parameter (ID) | Type & Default | Visibility Condition | Description & Options |
|---|---|---|---|
Curvecurve |
selectDefault: p256 |
Always visible | Must match the elliptic curve used during signing.
|
Pre-hash with SHA-256autoHash |
booleanDefault: true |
Always visible | Must match the pre-hashing setting used during signing (true to hash Message with SHA-256 automatically; false if passing a pre-computed hash digest). |
Treat As ErrorerrorOnValue |
selectDefault: "" (empty) |
Always visible | Judgement error reinterpretation: set to false (or true) to raise an error when Valid matches that value.
|
Error CodeerrorCode |
textDefault: "" (empty) |
When errorOnValue is true or false |
Custom error code when Treat As Error triggers. |
Error MessageerrorMessage |
textDefault: "" (empty) |
When errorOnValue is true or false |
Custom error message when Treat As Error triggers. |
Port I/O Specification
See Ports & Connections for general wiring rules, data type colors, and dynamic port creation.
Input Ports
Port Nature: Fixed Input Ports (3 total).
| Port Name | Port ID | Data Type | Required | Visibility Condition | Description |
|---|---|---|---|---|---|
Public Key |
publicKey |
Bytes |
Required | Always visible | Signer EC public key point (uncompressed 0x04 || X || Y or compressed 0x02/0x03 || X). |
Message |
data |
Bytes |
Required | Always visible | Original message bytes (or pre-computed hash bytes when Pre-hash with SHA-256 = false). |
Signature |
signature |
Bytes |
Required | Always visible | Candidate ECDSA signature bytes to verify. |
Output Ports
Port Nature: Fixed Output Ports (1 total).
| Port Name | Port ID | Data Type | Visibility Condition | Description |
|---|---|---|---|---|
Valid |
isValid |
Bool |
Always visible | Boolean verification result (true if valid, false otherwise). |
Error Cases
This node uses a Judgement Error Profile on its boolean output port isValid:
- Default Behavior (
Treat As Error = None): Verification or comparison mismatches do not raise a runtime error; instead, the node completes normally and emitsfalse(ortrue) onisValidso downstream nodes or scripts can inspect the boolean result. - Reinterpretation as Error (
Treat As Error = falseortrue): When the boolean verdict onisValidequals the configurederrorOnValuesetting, the engine transitions this node into anERRORstate using your custom Error Code and Error Message and halts downstream execution.
Examples
Verifying a P-256 ECDSA Signature
Check an ECDSA signature against the signer's P-256 public key.
- Connect
Public Keyfrom ECC KeyGen, the originalMessage, and theSignaturefrom ECC Sign to ECC Verify (ECDSA).