Thrown when a nudge payload received over the websocket cannot be used
to start a keygen or signing ceremony because one or more required
fields are missing or have an invalid value.
The constructor inspects the payload and records the offending field
names on InvalidNudgePayload.invalidFields, so consumers can
surface a precise reason without having to re-validate the payload
themselves. The original payload is preserved on
InvalidNudgePayload.payload for debugging.
Thrown when a nudge payload received over the websocket cannot be used to start a keygen or signing ceremony because one or more required fields are missing or have an invalid value.
The constructor inspects the payload and records the offending field names on InvalidNudgePayload.invalidFields, so consumers can surface a precise reason without having to re-validate the payload themselves. The original payload is preserved on InvalidNudgePayload.payload for debugging.
Example