Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Apr 20, 2018
1 parent ccb00ff commit 8f82d40
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/IntegrationTests/DataAPIIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,6 @@ public function testPrice() {
$this->assertTrue($price['USD'] > 0, "is above 0 [{$price['USD']}]");
}

public function testVerifyMessage() {
$client = $this->setupBlocktrailSDK();


$address = "1F26pNMrywyZJdr22jErtKcjF8R3Ttt55G";
$message = $address;
$signature = "H85WKpqtNZDrajOnYDgUY+abh0KCAcOsAIOQwx2PftAbLEPRA7mzXA/CjXRxzz0MC225pR/hx02Vf2Ag2x33kU4=";

// test locally
$this->assertTrue($client->verifyMessage($message, $address, $signature));

// test using the API for it
$response = $client->getRestClient()->post("verify_message", null, ['message' => $message, 'address' => $address, 'signature' => $signature]);
$this->assertTrue(json_decode($response->body(), true)['result']);
}

private function assertEqualsExceptKeys($expected, $actual, $keys) {
$expected1 = $expected;
$actual1 = $actual;
Expand Down

0 comments on commit 8f82d40

Please sign in to comment.