Desktop / Web access controls
Current SDK 0.4.0 supports desktop, web and both access policies. Business can restrict each software plan; Starter and Pro allow both apps under one App ID. Set up your applications and migrate safely. This release is verified in its package registry.
Prefer a guided first project?
Follow the visual dashboard steps and try the Rust example. The guide states clearly whether it uses an official SDK directly or a local Python learning helper.
Release status
SDK 0.4.0 supports the current required-fingerprint API, signed floating leases and online idempotent usage credits. Published in its package registry.
Download SDK ZIP · GitHub source · Package registry
Runtime and installation
Rust 1.90+, native applications, command-line tools and trusted backends; optional async worker.
cargo add kdpika-licensing@0.4.0
For source ZIP installation, extract it into your project and follow its README. Compare SHA-256 against the download table. All five SDKs use MIT; the hosted SaaS platform is separate. Capabilities and boundaries.
Activation and checks
Configure the public product App ID, explicit Sandbox environment for tests, application name/version and a private persistent state directory. Secret management API keys belong only on your server. Activate with a license key and the matching customer email when your application requires it.
The SDK collects product-salted hardware hashes and sends them on activation/validation with X-Installation-ID. It verifies the Ed25519 signed result, product/environment, installation and hardware binding before granting online/cached access. Missing hardware fails closed; browser-only JS/WASM has no fallback. is_virtual alone never rejects a license.
Use LicenseClient::builder(...), set Environment::Sandbox for testing and a private storage directory. activate(), check(), validate() and deactivate() return decisions whose valid() must be checked before feature(...). Native collector failures remain explicit.
Floating licenses
Pro allows up to 10 concurrent sessions per software license; Business has no commercial platform seat cap. A separate software-license device allowance still applies. Activation may automatically reserve a seat; an activation token alone is not a lease. checkout() returns Result<LicenseResult> with ErrorCode::AllSeatsInUse when full. heartbeat(), checkin() and close() return checked decisions. Automatic renewal does not survive a suspended process; Drop is best-effort, not a guaranteed release.
Stop licensed work at signed lease expiry even if regular offline grace is longer. A process crash cannot send checkin; the server frees an expired session. Shared-seat contract.
Online usage credits
Business permits metered licenses. consume(1, Some("export_job_123"), None) returns a verified CreditConsumption. get_balance() reads a signed online balance. Handle CreditError::InsufficientCredits or inspect CreditError::code(); consumption does not retry automatically.
Persist one idempotency key per billable job before sending. Recover an uncertain outcome with the same request key and operation, never a new key. Replays do not debit twice, but your application must also deduplicate execution of the actual job. A final successful charge may leave zero and authorize that charged operation only. Credit refunds return units, not money. Credit contract.
Offline and security boundaries
Regular licenses may use a verified cache only within signed deadlines, never beyond license expiry. Shared seats require an unexpired signed lease; metered permissions are online-only. An offline app cannot know about a new revocation until reconnecting. Do not log raw keys, tokens, hardware identifiers or customer payloads.
Require a valid, verified decision before features. A feature helper, token-presence property, HTTP 200 or successful deactivation alone grants no access. No hardware attestation, browser fingerprint fallback, unbreakable anti-piracy or universal OS certification is claimed.
Errors and recovery
FINGERPRINT_MISMATCH keeps access locked; contact the publisher for device recovery. HARDWARE_UNAVAILABLE means usable hardware information is unavailable; never replace it with a random ID fallback. ALL_SEATS_IN_USE asks the customer to close another app or release a stuck session. INSUFFICIENT_CREDITS denies the billable job. PLAN_UPGRADE_REQUIRED is a developer subscription limit, not a customer payment request.
Full error codes · Plan requirements · Compatibility · Customer portal.
License and distribution
MIT license; the platform/backend remains proprietary.
Complete example apps
Try Sudoku Studio or the original License Lab. Download and follow the steps.