[−][src]Crate in3_sys
Low-level, unsafe Rust bindings for the [In3][in3] library.
We recommend against using this crate directly. Instead, consider using in3-rs, which provides a high-level, safe, "Rusty" interface.
Re-exports
pub use self::ctx_type as ctx_type_t; |
pub use self::state as in3_ctx_state_t; |
Modules
| in3_ret_t |
Structs
| BLAKE256_CTX | |
| HDNode | |
| Hasher | |
| SHA3_CTX | SHA3 Algorithm context. |
| _G_fpos64_t | |
| _G_fpos_t | |
| _IO_FILE | |
| _IO_codecvt | |
| _IO_marker | |
| _IO_wide_data | |
| _SHA1_CTX | |
| _SHA256_CTX | |
| _SHA512_CTX | |
| __blake2b_state | |
| __fsid_t | |
| __locale_data | |
| __locale_struct | |
| __mbstate_t | |
| __pthread_cond_s | |
| __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 | |
| __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 | |
| __pthread_internal_list | |
| __pthread_internal_slist | |
| __pthread_mutex_s | |
| __pthread_rwlock_arch_t | |
| __sigset_t | |
| __va_list_tag | |
| bignum256 | |
| bytes | a byte array |
| bytes_builder_t | a byte-buffer to attach byte-functions. |
| cache_entry | represents a single cache entry in a linked list. These are used within a request context to cache values and automaticly free them. |
| curve_info | |
| curve_point | |
| d_iterator | iterator over elements of a array opf object. |
| div_t | |
| drand48_data | |
| ecdsa_curve | |
| eth_blknum_t | |
| eth_block | An Ethereum Block |
| eth_log | A linked list of Ethereum Logs |
| eth_tx | A transaction |
| eth_tx_receipt | A transaction receipt |
| fd_set | |
| in3_request_config | the configuration as part of each incubed request. This will be generated for each request based on the client-configuration. the verifier may access this during verification in order to check against the request. |
| in3_node | incubed node-configuration. |
| in3_node_weight | Weight or reputation of a node. |
| in3_whitelist | defines a whitelist structure used for the nodelist. |
| in3_verified_hash | represents a blockhash which was previously verified |
| in3_chain | Chain definition inside incubed. |
| in3_storage_handler | storage handler to handle cache. |
| in3_signer | definition of a signer holding funciton-pointers and data. |
| in3_pay | the payment handler. |
| in3_response | response-object. |
| in3_request | request-object. |
| in3_filter_t_ | |
| in3_filter_handler_t_ | Handler which is added to client config in order to handle filter. |
| in3_t_ | Incubed Configuration. |
| in3_ctx | The Request config. |
| in3_chain__bindgen_ty_1 | |
| item | a token holding any kind of value. |
| itimerspec | |
| json_parser | parser for json or binary-data. it needs to freed after usage. |
| ldiv_t | |
| lldiv_t | |
| max_align_t | |
| opt_address_t | |
| opt_bytes_t | |
| opt_uint64_t | |
| opt_uint256_t | |
| random_data | |
| sb | string build struct, which is able to hold and modify a growing string. |
| sigevent | |
| sph_groestl_big_context | This structure is a context for Groestl-384 and Groestl-512 computations: it contains the intermediate values and some data from the last entered block. Once a Groestl computation has been performed, the context can be reused for another computation. |
| str_range | internal type used to represent the a range within a string. |
| timespec | |
| timeval | |
| tm | |
| uint256_t | a 32 byte long integer used to store ethereum-numbers. |
| weight | the weight of a certain node as linked list. |
Enums
| HasherType | |
| blake2b_constant | |
| ctx_type | type of the request context, |
| d_signature_type_t | type of the requested signature |
| d_type_t | type of a token. |
| eth_blknum_def_t | Abstract type for holding a block number |
| idtype_t | |
| in3_chain_type_t | the type of the chain. |
| in3_proof_t | the type of proof. |
| in3_verification_t | verification as delivered by the server. |
| in3_node_props_type_t | |
| in3_flags_type_t | a list of flags definiing the behavior of the incubed client. They should be used as bitmask for the flags-property. |
| in3_node_attr_type_t | a list of node attributes (mostly used internally) |
| in3_filter_type_t | Filter type used internally when managing filters. |
| state | The current state of the context. |
Constants
Statics
Functions
Type Definitions
| FILE | |
| GROESTL512_CTX | |
| SHA1_CTX | |
| SHA256_CTX | |
| SHA512_CTX | |
| _Float32 | |
| _Float32x | |
| _Float64 | |
| _Float64x | |
| _IO_lock_t | |
| __FILE | |
| __blkcnt64_t | |
| __blkcnt_t | |
| __blksize_t | |
| __builtin_va_list | |
| __caddr_t | |
| __clock_t | |
| __clockid_t | |
| __compar_fn_t | |
| __daddr_t | |
| __dev_t | |
| __fd_mask | |
| __fpos64_t | |
| __fpos_t | |
| __fsblkcnt64_t | |
| __fsblkcnt_t | |
| __fsfilcnt64_t | |
| __fsfilcnt_t | |
| __fsword_t | |
| __gid_t | |
| __gnuc_va_list | |
| __id_t | |
| __ino64_t | |
| __ino_t | |
| __int8_t | |
| __int16_t | |
| __int32_t | |
| __int64_t | |
| __int_least8_t | |
| __int_least16_t | |
| __int_least32_t | |
| __int_least64_t | |
| __intmax_t | |
| __intptr_t | |
| __key_t | |
| __locale_t | |
| __loff_t | |
| __mode_t | |
| __nlink_t | |
| __off64_t | |
| __off_t | |
| __pid_t | |
| __pthread_list_t | |
| __pthread_slist_t | |
| __quad_t | |
| __rlim64_t | |
| __rlim_t | |
| __sig_atomic_t | |
| __socklen_t | |
| __ssize_t | |
| __suseconds_t | |
| __syscall_slong_t | |
| __syscall_ulong_t | |
| __time_t | |
| __timer_t | |
| __u_char | |
| __u_int | |
| __u_long | |
| __u_quad_t | |
| __u_short | |
| __uid_t | |
| __uint8_t | |
| __uint16_t | |
| __uint32_t | |
| __uint64_t | |
| __uint_least8_t | |
| __uint_least16_t | |
| __uint_least32_t | |
| __uint_least64_t | |
| __uintmax_t | |
| __useconds_t | |
| address_t | |
| blake2b_state | |
| blkcnt_t | |
| blksize_t | |
| bytes32_t | |
| bytes_t | a byte array |
| cache_entry_t | represents a single cache entry in a linked list. These are used within a request context to cache values and automaticly free them. |
| caddr_t | |
| chain_id_t | type for a chain_id. |
| clock_t | |
| clockid_t | |
| curve25519_key | |
| d_iterator_t | iterator over elements of a array opf object. |
| d_key_t | |
| d_token_t | a token holding any kind of value. |
| daddr_t | |
| dev_t | |
| ed25519_signature | |
| ed25519_public_key | |
| ed25519_secret_key | |
| ed25519_cosi_signature | |
| eth_block_t | An Ethereum Block |
| eth_log_t | A linked list of Ethereum Logs |
| eth_tx_receipt_t | A transaction receipt |
| eth_tx_t | A transaction |
| fd_mask | |
| fpos_t | |
| fsblkcnt_t | |
| fsfilcnt_t | |
| fsid_t | |
| get_error_fn | function to get last error message. default implementation is NOT MT safe! |
| gid_t | |
| id_t | |
| in3_request_config_t | the configuration as part of each incubed request. This will be generated for each request based on the client-configuration. the verifier may access this during verification in order to check against the request. |
| in3_node_props_t | Node capabilities @note Always access using getters/setters in nodelist.h |
| in3_node_attr_t | |
| in3_node_t | incubed node-configuration. |
| in3_node_weight_t | Weight or reputation of a node. |
| in3_whitelist_t | defines a whitelist structure used for the nodelist. |
| in3_verified_hash_t | represents a blockhash which was previously verified |
| in3_chain_t | Chain definition inside incubed. |
| in3_storage_get_item | storage handler function for reading from cache.
@returns the found result. if the key is found this function should return the values as bytes otherwise |
| in3_storage_set_item | storage handler function for writing to the cache. |
| in3_storage_clear | storage handler function for clearing the cache. |
| in3_storage_handler_t | storage handler to handle cache. |
| in3_sign | signing function. |
| in3_prepare_tx | transform transaction function. |
| in3_signer_t | definition of a signer holding funciton-pointers and data. |
| in3_pay_prepare | payment prepearation function. |
| in3_pay_follow_up | called after receiving a parseable response with a in3-section. |
| in3_pay_free | free function for the custom pointer. |
| in3_pay_handle_request | handles the request. |
| in3_pay_t | the payment handler. |
| in3_response_t | response-object. |
| in3_t | Incubed Configuration. |
| in3_request_t | request-object. |
| in3_transport_send | the transport function to be implemented by the transport provider. |
| in3_filter_t | |
| in3_filter_handler_t | Handler which is added to client config in order to handle filter. |
| in3_ctx_t | The Request config. |
| ino_t | |
| int_fast8_t | |
| int_fast16_t | |
| int_fast32_t | |
| int_fast64_t | |
| int_least8_t | |
| int_least16_t | |
| int_least32_t | |
| int_least64_t | |
| intmax_t | |
| json_ctx_t | parser for json or binary-data. it needs to freed after usage. |
| key_t | |
| locale_t | |
| loff_t | |
| mode_t | |
| nlink_t | |
| node_match_t | the weight of a certain node as linked list. |
| off_t | |
| pid_t | |
| pthread_key_t | |
| pthread_once_t | |
| pthread_spinlock_t | |
| pthread_t | |
| quad_t | |
| rand_func | rand function defaults to k_uptime_get() for zeohyr and rand() for other platforms expected to return a random number |
| register_t | |
| sb_t | string build struct, which is able to hold and modify a growing string. |
| set_error_fn | function to set error. Will only be called internally. default implementation is NOT MT safe! |
| sigset_t | |
| srand_func | srand function defaults to NOOP for zephyr and srand() for other platforms expected to set the seed for a new sequence of random numbers to be returned by in3_rand() |
| str_range_t | internal type used to represent the a range within a string. |
| suseconds_t | |
| time_func | time function defaults to k_uptime_get() for zeohyr and time(NULL) for other platforms expected to return a u64 value representative of time (from epoch/start) |
| time_t | |
| timer_t | |
| u_char | |
| u_int | |
| u_int8_t | |
| u_int16_t | |
| u_int32_t | |
| u_int64_t | |
| u_long | |
| u_quad_t | |
| u_short | |
| uid_t | |
| uint | |
| uint_fast8_t | |
| uint_fast16_t | |
| uint_fast32_t | |
| uint_fast64_t | |
| uint_least8_t | |
| uint_least16_t | |
| uint_least32_t | |
| uint_least64_t | |
| uintmax_t | |
| ulong | |
| ushort | |
| va_list | |
| wchar_t | |
| wlen_t |