Skip to content

Commit 2220ca9

Browse files
author
Jan Moritz Lindemann
committed
updated test
1 parent f8fd044 commit 2220ca9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/BitcoinPHP/Tests/BitcoinECDSATest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ public function testBlock()
109109
$signedMessage = $bitcoinECDSA->signMessage('Hello ' . $i);
110110
echo $signedMessage."\n";
111111
echo "\nSignature:\n";
112-
print_r($bitcoinECDSA->getSignatureHashPoints(gmp_strval(gmp_init('968236873715988614170569073515315707566766479517',10),16), '1'));
113-
114-
echo "\n" . bin2hex(base64_decode('Gyk26Le4ER0EUvZiFGUCXhJKWVEoTtQNU449puYZPaiUmYyrcozt2LuAMgLvnEgpoF6cw8ob9Mj/CjP9ATydO1k='));
115-
112+
print_r($bitcoinECDSA->getSignatureHashPoints(hash('sha256', rand(0,10000000))));
116113
// test : signed message is valid
117114
$this->assertTrue($bitcoinECDSA->checkSignatureForRawMessage($signedMessage));
118115

0 commit comments

Comments
 (0)