LibreAuth

Rust SDK

Rust 2021 · LibreAuth native client · Protocol v2 available (Enterprise)

Rust Rust 2021
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

anti_re_boot/gate/pulse · ApiSeal · device_pubkey + OpsAck device_sig · result_enc=b64 · process_check_ops after check · authority/session_gate · /api/v2/

  1. Credentials: name + ownerid (10 characters)
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: rust/src/lib.rs
  4. Ed25519 key: from init → Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
cargo add reqwest serde_json hmac hex rand sha2
# v2: sdk/rust/src/v2.rs · inject verify_sig

Code Example

Rust
libreauth::anti_re_boot();
let mut app = LibreAuthV2::new(name, owner, url, pubk);
assert!(libreauth::anti_re_gate(true, false));
let init = app.init()?;
libreauth::apply_init_policy(&init);
app.license(key, &hwid)?;
// poll: check → process_check_ops → process_heartbeat

Protocol v2 (Enterprise)

INFO
Requires Enterprise plan. Endpoint https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.

Source: rust/src/v2.rs

Rust · v2
libreauth::anti_re_boot();
let mut app = LibreAuthV2::new(name, owner, url, pubk);
assert!(libreauth::anti_re_gate(true, false));
let init = app.init()?;
libreauth::apply_init_policy(&init);
app.license(key, &hwid)?;
// poll: check → process_check_ops → process_heartbeat