Signs a single proof with the provided private key if required.
A proof to sign.
A single private key (hex string or Uint8Array).
Optional
Optional. The message to sign (for SIG_ALL)
Signed proofs.
Will only sign if the proof requires a signature from the key.
Error if signature is not required or proof is already signed.
Signs a single proof with the provided private key if required.