Skip to content

Commit

Permalink
Update DidKey.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Dec 4, 2024
1 parent 26c6509 commit 3f0bdcd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Crypto/DidKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ public static function parse(string $didkey): array
*/
public static function encode(PublicKeyInterface $pubkey): string
{
if (! class_exists(EccFactory::class)) {
throw new RuntimeException('Please install any ecc package.');
}

$adapter = EccFactory::getAdapter();
$serializer = new CompressedPointSerializer($adapter);
$compressed = $serializer->serialize($pubkey->getPoint());
Expand Down

0 comments on commit 3f0bdcd

Please sign in to comment.