/
index.ts
48 lines (47 loc) · 1.52 KB
/
index.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
/**
* This namespace is a compilation of utilities functions relative to **smart contract development**.
* It is located at **utils**.
*
* @privateRemarks
*
* Please do not dump all your functions in this namespace.
* Try to organize them in different files.
*
* If any files becomes too big, or is starting to be too specific,
* don't hesitate to propose a new namespace.
*
* Here is the catalog of all functions organized by file:
*
* In the file **address.ts** you can find utilities functions to interact further with {@link Address} such as:
* - {@link publicKeyToAddress}.
* - {@link validateAddress}.
* - {@link isAddressEoa}.
* To be moved in the {@link Address} namespace.
*
* In the file **crypto.ts** you can find basic **cryptographic** functions such as:
* - {@link sha256}.
* - {@link isSignatureValid}.
* - {@link keccak256}.
* - {@link isEvmSignatureValid}.
* - {@link evmGetAddressFromPubkey}.
* - {@link evmGetPubkeyFromSignature}.
* - {@link toBase58}.
*
* In the file **events.ts** you can find functions to generate **events** in the blockchain such as:
* - {@link generateEvent}.
* - {@link createEvent}.
*
* In the file **logging.ts** you can find functions to generate **logs** in the blockchain such as:
* - {@link print}.
*
* In the file **random.ts** you can find functions to generate **random numbers** such as:
* - {@link unsafeRandom}.
*
* @module
*
*/
export * from './address';
export * from './crypto';
export * from './events';
export * from './logging';
export * from './random';