1 |
|
2 | export declare function bytesToHex(bytes: Uint8Array): string;
|
3 | export declare function numberToHex(num: number): string;
|
4 | export declare function hexToNumber(hex: string): number;
|
5 | export declare function bytesToHexAddr(bytes: Uint8Array): string;
|
6 | export declare function getGUID(): string;
|
7 | export declare const SIGNATURE_LENGTH: number;
|
8 | export declare const PRIVATE_KEY_LENGTH: number;
|
9 | export declare const PUBLIC_KEY_LENGTH: number;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare function generatePrivateKey(): Uint8Array;
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare function publicKeyFromPrivateKey(privateKey: Uint8Array): Uint8Array;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare function sign(msg: Uint8Array, privateKey: Uint8Array): Uint8Array;
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function Uint8ArrayToB64(bytes: Uint8Array): string;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export declare function B64ToUint8Array(s: string): Uint8Array;
|
40 | export declare function bufferToProtobufBytes(input: Buffer | Uint8Array): Uint8Array;
|