Skip to main content

trust_score_info_v1

Function trust_score_info_v1 

Source
pub fn trust_score_info_v1(trust_level: f64) -> Result<JsValue, JsError>
Expand description

Build the issuance info value for a fedi-trust-score-v1.0 badge.

Rejects anything but an integer in the documented 1..=12 trust model — no silent truncation or wrap-around of illegal inputs.