Optional ReadonlyaddressThe input's address, for no_keys, exhausted and unknown_state.
OptionalcauseOptional ReadonlyinputThe input refused (no_address), or the first input spending from address.
Optional ReadonlymethodThe JSON-RPC method the error is about, when there is one.
Optional ReadonlyneededFor would_run_out: the signatures the PSBT needs from the key, one per input whose address holds it.
Optional ReadonlypubkeyThe key, for would_run_out, and for exhausted and unknown_state when a key's state was; absent when the address's overall state was.
ReadonlyreasonWhy the PSBT was refused: see the class's description.
Optional ReadonlyremainingFor would_run_out: the key's pqcSignaturesRemaining.
OptionalstackOptional ReadonlystateThe state the node reported, for exhausted and unknown_state.
StaticstackThe Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
StaticcaptureCreates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();
OptionalconstructorOpt: FunctionStaticisWhether value is a PqcSigningError from any copy of this package.
Staticprepare
The PQC check before signing refused a PSBT, and nothing was signed. An exhausted key signs nothing and raises no error, so
walletProcessPsbt(by default) andcheckPqcSigningcount the signatures the PSBT needs from each of the wallet's PQC keys first, and refuse when an input names no address to count it by (no_address, seeinputIndex), when the node reports an address's PQC state without its keys (no_keys), when a key isexhaustedor in a state this version does not know (exhausted,unknown_state, seestate), or when a key has fewer signatures left than the PSBT needs from it (would_run_out, seeneededandremaining): it would run out partway, leaving the inputs after it unsigned.methodiswalletprocesspsbt, the call refused. The address is a property only: the message names the input and the key.