Registry / crypto / near-crypto

near-crypto

JSON →
library0.36.0rscratesunverified

An internal crate for common cryptographic types used in the NEAR protocol.

# Cargo.toml [dependencies] near-crypto = "0.36.0"
INSTALL
IMPORT
SIG · NEAR-CRYPTO
N
near-crypto
cryptorustv0.36.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.

SecretKey
use near_crypto::SecretKey;

Generates a secret key from a seed and prints the corresponding public key.

use near_crypto::SecretKey; fn main() { let secret_key = SecretKey::from_seed("ed25519", "test_seed"); println!("Public key: {:?}", secret_key.public_key()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.36.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
near-crypto — cargo add near-crypto · libregistry