-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrivateKeyInterface.php
33 lines (21 loc) · 1005 Bytes
/
PrivateKeyInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace Yoruchiaki\WebaseFront\Interfaces;
interface PrivateKeyInterface
{
public function create(
string $userName,
string $signUserId,
int $type = 2,
string $appId = null,
bool $returnPrivateKey = false
): array;
public function import(string $privateKey, string $userName): array;
public function localKeyStores(): array;
public function deleteByAddress(string $address): array;
public function importPem(string $pemContent, string $userName): array;
public function importWithSign(string $signUserId, string $appId, string $privateKey): array;
public function signMessageHash(string $signUserId, string $messageHash): array;
public function exportPem(string $signUserId = null, string $userAddress = null): array;
public function exportP12(string $signUserId = null, string $userAddress = null): array;
public function userInfoWithSign(string $signUserId, bool $returnPrivateKey = false): array;
}