Registry / crypto / primitive-types

primitive-types

JSON →
library0.14.0rscratesunverified

Primitive types shared by Ethereum and Substrate, including H256, U256, and others.

# Cargo.toml [dependencies] primitive-types = "0.14.0"
INSTALL
IMPORT
SIG · PRIMITIVE-TYPES
P
primitive-types
cryptorustv0.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

H256
use primitive_types::H256;

Create a zero-initialized 256-bit hash.

use primitive_types::H256; fn main() { let hash = H256::zero(); println!("Hash: {:?}", hash); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
primitive-types — cargo add primitive-types · libregistry