Skip to main content

Provncloud SDK for Python - Privacy-preserving digital signatures

Project description

Provncloud SDK (Python)

PyPI Python Version License: MIT

Official Python SDK for privacy-preserving digital signatures and data anchoring.

Provncloud SDK allows you to cryptographically sign data and anchor it to blockchain networks like Arweave AO and Solana without revealing the raw content. Built with a high-performance Rust core (via PyO3), it ensures strict cryptographic standards and cross-platform interoperability.

🚀 Installation

pip install provn-sdk

💻 Usage

from provn_sdk import ProvnSDK
import time

# 1. Initialize the SDK
sdk = ProvnSDK()

# 2. Generate a new Ed25519 keypair
keys = sdk.generate_keypair()

# 3. Create a claim with current timestamp
timestamp = int(time.time())
claim = sdk.create_claim("AI Model Metadata v2.4", timestamp)

# 4. Sign the claim
signed = sdk.sign_claim(claim, keys['private_key'])

# 5. Verify (Offline)
is_valid = sdk.verify_claim(signed)
print(f"Signature valid: {is_valid}")

🛠 Features

  • Rust-Powered: High-performance cryptographic operations using native bindings.
  • Deterministic: Implements JCS (RFC 8785) for cross-language signature compatibility.
  • Payload Safety: Enforces 2KB limits on claim data to prevent broadcast bloat.
  • Easy Integration: Simple object-oriented API for key management and anchoring.

📚 Resources

⚖️ License

MIT License. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

provn_sdk-0.3.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

provn_sdk-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl (335.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file provn_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: provn_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.4

File hashes

Hashes for provn_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9de2650804327defb6d57af99a7eb8daeb0a963d0e15c755b63bc85cb6b3b916
MD5 13943649e2a750b4081df397deb12bb2
BLAKE2b-256 720ba3135abb52ad8019a6ec304af703340437477da952a5f6a82ade408c602c

See more details on using hashes here.

File details

Details for the file provn_sdk-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for provn_sdk-0.3.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9fa163387d8c8d48ae97acd47f8c985d6a710a246df15e7fc4c524cfb9d2518a
MD5 6041b2f44741a84a29aff20a3780f2c5
BLAKE2b-256 ba04b726e8010f38186f5921c03e6e6b747cdcbdcd945d1f78952ce102670115

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page