This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add secp256k1 & secp256r1 key types generate
- Loading branch information
Showing
3 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php declare(strict_types=1); | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
|
||
use Metahash\MetaHash; | ||
|
||
$metaHash = new MetaHash(); | ||
|
||
|
||
\var_dump('secp256k1', $metaHash->generateKey(MetaHash::KEY_TYPE_SECP256K1)); | ||
|
||
\var_dump('secp256r1', $metaHash->generateKey(MetaHash::KEY_TYPE_SECP256R1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters