mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
docs: Calculate correct hashes in dlc doc (#2059)
This commit is contained in:
parent
f19cba90d3
commit
43db743660
@ -59,9 +59,9 @@ val kValue = ECPrivateKey.freshPrivateKey
|
||||
val rValue = kValue.schnorrNonce
|
||||
|
||||
//the hash the oracle will sign when the bitcoin price is over $9,000
|
||||
val winHash = CryptoUtil.sha256(ByteVector("BTC_OVER_9000".getBytes)).flip
|
||||
val winHash = CryptoUtil.sha256(ByteVector("BTC_OVER_9000".getBytes))
|
||||
//the hash the oracle with sign when the bitcoin price is under $9,000
|
||||
val loseHash = CryptoUtil.sha256(ByteVector("BTC_UNDER_9000".getBytes)).flip
|
||||
val loseHash = CryptoUtil.sha256(ByteVector("BTC_UNDER_9000".getBytes))
|
||||
|
||||
//the amounts received in the case the oracle signs hash of message "BTC_OVER_9000"
|
||||
val amtReceivedOnWin = Satoshis(100000)
|
||||
|
Loading…
Reference in New Issue
Block a user