-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaleo_explorer_rust.pyi
99 lines (45 loc) · 2.12 KB
/
aleo_explorer_rust.pyi
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
from typing import Any
class RustExecuteError(Exception): ...
def sign_nonce(private_key: str, nonce: bytes) -> bytes: ...
def bech32_encode(hrp: str, data: bytes) -> str: ...
def bech32_decode(data: str) -> tuple[str, bytes]: ...
def get_mapping_id(program_id: str, mapping_name: str) -> str: ...
def get_key_id(program_id: str, mapping_name: str, key: bytes) -> str: ...
def get_value_id(key_id: str, value: bytes) -> str: ...
def compile_program(program: str, program_name: str, imports: list[str]) -> bytes: ...
def parse_program(program: str) -> bytes: ...
def hash_ops(input: bytes, hash_type: str, destination_type: Any) -> bytes: ...
def commit_ops(input: bytes, randomness: Any, commit_type: str, destination_type: Any) -> bytes: ...
def field_ops(a: Any, b: Any, op: str) -> bytes: ...
def group_ops(a: Any, b: Any, op: str) -> bytes: ...
def scalar_ops(a: Any, b: Any, op: str) -> bytes: ...
def finalize_random_seed(
block_round: int,
block_height: int,
block_cumulative_weight: int,
block_cumulative_proof_target: int,
previous_block_hash: bytes,
) -> bytes: ...
def chacha_random_seed(
state_seed: bytes,
transition_id: bytes,
program_id: bytes,
function_name: bytes,
destination_locator: int,
destination_type_id: int,
additional_seeds: list[bytes],
) -> bytes: ...
def chacha_random_value(
random_seed: bytes,
destination_type: Any,
) -> bytes: ...
def signature_to_address(signature: str) -> str: ...
def compute_key_to_address(compute_key: bytes) -> str: ...
def deserialize_g1affine(data: bytes) -> tuple[bytes, bytes, bool]: ...
def serialize_g1affine(x: bytes, y: bytes, infinity: bool) -> bytes: ...
def program_id_to_address(program_id: str) -> str: ...
def cast(input: str, input_type: Any, destination_type: Any, lossy: bool) -> bytes: ...
def hash_bytes_to_field(input: bytes, hash_type: str) -> bytes: ...
def solution_to_id(epoch_hash: str, address: str, counter: int) -> bytes: ...
def rejected_tx_original_id(confirmed_transaction: bytes) -> str: ...
def get_puzzle_program_data(epoch_hash: bytes) -> tuple[bytes, int, int]: ...