[][src]Crate libra_secure_json_rpc

The purpose of the JsonRpcClient presented here is to provide a lightweight and secure JSON RPC client to talk to the JSON RPC service offered by Libra Full Nodes. This is useful for various security-critical components (e.g., the secure key manager), as it allows interaction with the Libra blockchain in a minimal and secure manner.

Note: While a JSON RPC client implementation already exists in the Libra codebase, this provides a simpler and (hopefully) more secure implementation with fewer dependencies.

Modules

fuzzing

This module provides all the functionality necessary to test the secure JSON RPC client using fuzzing.

Structs

Bytes

Represents a vector of bytes using hex encoding.

JsonRpcClient

Provides a lightweight JsonRpcClient implementation.

TransactionView

Enums

Error
VMStatusView

Functions

process_account_state_response

Processes the response from a get_account_state_with_proof() JSON RPC request.

process_submit_transaction_response

Processes the response from a submit_transaction() JSON RPC request.

process_transaction_status_response

Processes the response from a get_transaction_status() JSON RPC request.