Quorum Protocol Python SDK — server-side request creation, webhook verification, group management
Project description
quorum-sdk (Python)
Python SDK for the Quorum Protocol API — server-side request creation, webhook verification, group management.
Install
pip install quorum-sdk
Quick start
from quorum import QuorumClient, verify_webhook_signature
client = QuorumClient(
base_url="https://api.quorum.dev",
api_key="qrm_..."
)
# Create an auth request
req = client.create_request(
group_id="your-group-uuid",
action_descriptor="Approve payment instruction",
payload_hash="sha256_hex_of_payload",
expires_in=300,
)
print(req.id, req.status) # pending
# Verify webhook (e.g. in a Flask handler)
from flask import request
@app.post("/webhooks/quorum")
def handle():
sig = request.headers.get("X-Quorum-Signature-256", "")
if not verify_webhook_signature(request.data, WEBHOOK_SECRET, sig):
return "Unauthorized", 401
event = request.json
if event["event"] == "request.approved":
# handle approval
pass
return "ok"
Server-side share derivation (USSD / server path)
from quorum.crypto import derive_share
share_hex = derive_share(pin="284751", salt_hex="a3f2e1d4..." * 2)
client.authorize(request_id=req.id, member_id=member_id, share_hex=share_hex, token=token)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quorum_sdk-1.0.0.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quorum_sdk-1.0.0.tar.gz.
File metadata
- Download URL: quorum_sdk-1.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b313b1269abdbeca90d617f90608b397d26a7ee11c1d8223ed4c665b7514e1b7
|
|
| MD5 |
e4bacd1474e21c9d9b1059c317f35670
|
|
| BLAKE2b-256 |
e8c4f2a4edab1c3fc03568a7676272a22af6736484bd58b7039041f7fb904cb5
|
File details
Details for the file quorum_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quorum_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa808de161b1630320db744bd49a6e3392d22f157d961d929877abab07d2cffa
|
|
| MD5 |
b51776a2f0e66fc68f095b1fd1dd21cf
|
|
| BLAKE2b-256 |
7eff6255decdb890076a24f798b292169bd7d902e38eca6e7f04d681f91dbac0
|