Skip to main content

PROFILE_MAX_BYTES

Constant PROFILE_MAX_BYTES 

Source
pub const PROFILE_MAX_BYTES: usize = 65_536;
Expand description

The largest profile document the gate serves unsigned: 64 KiB. A larger one is answered 404.

ยงExamples

use stratum_node_core::{profile_card, DidNostr, PROFILE_MAX_BYTES};

let owner = DidNostr::from_hex("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")?;
assert!(profile_card(&owner).len() < PROFILE_MAX_BYTES);