mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Add nonces to error message for easier debugging (#3430)
* Add nonces to error message for easier debugging * Add .hex calls
This commit is contained in:
parent
62a8897d7f
commit
ea1ead9a3f
1 changed files with 4 additions and 2 deletions
|
@ -295,8 +295,10 @@ class DLCOracle(private[this] val extPrivateKey: ExtPrivateKeyHardened)(implicit
|
|||
sigVersion = eventDb.signingVersion
|
||||
|
||||
kVal = getKValue(rValDb, sigVersion)
|
||||
_ = require(kVal.schnorrNonce == rValDb.nonce,
|
||||
"The nonce from derived seed did not match database")
|
||||
_ = require(
|
||||
kVal.schnorrNonce == rValDb.nonce,
|
||||
s"The nonce from derived seed did not match database, db=${rValDb.nonce.hex} derived=${kVal.schnorrNonce.hex}, rValDb=$rValDb"
|
||||
)
|
||||
|
||||
hashBytes = eventOutcomeDb.hashedMessage
|
||||
sig = signingKey.schnorrSignWithNonce(hashBytes, kVal)
|
||||
|
|
Loading…
Add table
Reference in a new issue