This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.d.ts
50 lines (26 loc) · 1.86 KB
/
index.d.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
declare module 'react-native-substrate-sign' {
export function brainWalletAddress(seed: string): Promise<string>;
export function brainWalletBIP39Address(seed: string): Promise<string>;
export function brainWalletSign(seed: string, message: string): Promise<string>;
export function rlpItem(rlp: string, position: number): Promise<string>;
export function keccak(data: string): Promise<string>;
export function blake2b(data: string): Promise<string>;
export function ethSign(data: string): Promise<string>;
export function blockiesIcon(seed: string): Promise<string>;
export function randomPhrase(wordsNumber: number): Promise<string>;
export function encryptData(data: string, password: string): Promise<string>;
export function decryptData(data: string, password: string): Promise<string>;
export function qrCode(data: string): Promise<string>;
export function qrCodeHex(data: string): Promise<string>;
export function substrateAddress(seed: string, prefix: number): Promise<string>;
export function substrateSign(seed: string, message: string): Promise<string>;
export function schnorrkelVerify(seed: string, message: string, signature: string): Promise<boolean>;
export function decryptDataRef(data: string, password: string): Promise<number>;
export function destroyDataRef(dataRef: number): Promise<void>;
export function brainWalletSignWithRef(dataRef: number, message: string): Promise<string>;
export function substrateSignWithRef(dataRef: number, suriSuffix: string, message: string): Promise<string>;
export function brainWalletAddressWithRef(dataRef: number): Promise<string>;
export function substrateAddressWithRef(dataRef: number, suriSuffix: string, prefix: number): Promise<string>;
export function substrateSecret(suri: string): Promise<string>;
export function substrateSecretWithRef(dataRef: number, suriSuffix: string): Promise<string>;
}