Registry / crypto / static-pubkey

static-pubkey

JSON →
library1.0.3rscratesunverified

A macro for compile-time parsing of public key strings into byte arrays for near zero-cost static public keys.

# Cargo.toml [dependencies] static-pubkey = "1.0.3"
INSTALL
IMPORT
SIG · STATIC-PUBKEY
S
static-pubkey
cryptorustv1.0.3
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.

static_pubkey
use static_pubkey::static_pubkey;

Parses a hex public key string into a byte array at compile time.

use static_pubkey::static_pubkey; const PUBKEY: [u8; 32] = static_pubkey!("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798");
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Resources
static-pubkey — cargo add static-pubkey · libregistry