Skip to content

Commit

Permalink
Update CryptoTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
puklipo committed Dec 3, 2024
1 parent cd7edba commit 077018b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Feature/Crypto/CryptoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ public function test_did_key_encode(): void
$pubkey = $sk->getPublicKey();

$b58key = DidKey::encode($pubkey);
$didkey = DidKey::format($pubkey);

$parsed = DidKey::parse($b58key);

$this->assertStringStartsWith('z', $b58key);
$this->assertStringStartsWith('did:key:z', $didkey);
$this->assertSame('ES256K', $parsed['alg']);
}
}

0 comments on commit 077018b

Please sign in to comment.