Skip to content

Using sawabona-core as a Library

Installation

Add to your Cargo.toml:

[dependencies]
sawabona-core = "0.1"

Basic Usage

Creating a License

use sawabona_core::prelude::*;

let license = License::new(
    product_id,
    customer_email,
    plan_id,
    LicenseType::Subscription,
)?;

Validating with Geometric Proof

let proof = license.generate_proof()?;
let is_valid = proof.verify()?;

Advanced Topics

  • Payment provider integration
  • Custom proof systems
  • Database repository patterns