Crate cita_tool

Crate cita_tool 

Source
Expand description

A easy-use CITA command line tool

Re-exports§

pub use crate::client::parse_url;
pub use crate::client::remove_0x;
pub use crate::client::TransactionOptions;
pub use crate::crypto::pubkey_to_address;
pub use crate::crypto::secp256k1_sign;
pub use crate::crypto::sign;
pub use crate::crypto::sm2_sign;
pub use crate::crypto::CreateKey;
pub use crate::crypto::Encryption;
pub use crate::crypto::Hashable;
pub use crate::crypto::KeyPair;
pub use crate::crypto::Message;
pub use crate::crypto::PrivateKey;
pub use crate::crypto::PubKey;
pub use crate::crypto::Secp256k1KeyPair;
pub use crate::crypto::Secp256k1PrivKey;
pub use crate::crypto::Secp256k1PubKey;
pub use crate::crypto::Signature;
pub use crate::crypto::Sm2KeyPair;
pub use crate::crypto::Sm2Privkey;
pub use crate::crypto::Sm2Pubkey;
pub use crate::crypto::Sm2Signature;
pub use crate::error::ToolError;
pub use crate::protos::Crypto;
pub use crate::protos::SignedTransaction;
pub use crate::protos::Transaction;
pub use crate::protos::UnverifiedTransaction;
pub use crate::rpctypes::JsonRpcParams;
pub use crate::rpctypes::JsonRpcResponse;
pub use crate::rpctypes::ParamsValue;
pub use crate::rpctypes::ResponseValue;

Modules§

client
The Jsonrpc Client
crypto
Encryption algorithm library
error
Error of cita tool
protos
Transaction protobuf code
rpctypes
Request and Response type

Structs§

H32
H64
H128
Fixed-size uninterpreted hash type with 16 bytes (128 bits) size.
H160
Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
H256
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
H264
H512
Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
H520
U64
Little-endian large integer type Unsigned 64-bit integer.
U256
Little-endian large integer type 256-bit unsigned integer.
U512
Little-endian large integer type 512-bits unsigned integer.

Traits§

LowerHex
Format types
ProtoMessage
Trait implemented for all generated structs for protobuf messages.

Functions§

decode
Decodes a hex string into raw bytes.
decode_input
According to the given abi file, decode the data
decode_logs
According to the given abi file, decode the topic
decode_params
According to type, decode the data
encode
Encodes data as hex string using lowercase characters.
encode_input
According to the given abi file, encode the function and parameter values
encode_params
According to type, encode the value of the parameter

Type Aliases§

Address