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.1.tar.gz
(7.3 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.1.tar.gz.
File metadata
- Download URL: quorum_sdk-1.0.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
522ee975554b91c146d6ede09f5690d060f977c37a8b6624e5779c55a7ac53d5
|
|
| MD5 |
03c54c9c10f918b48382742380df99a1
|
|
| BLAKE2b-256 |
600efc01c70235e3ccfde2b9ed5d53d4450ecdbedef9636b73f3290d1b861875
|
File details
Details for the file quorum_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: quorum_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 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 |
bc877f01f28f3759c1c1eda01824564b20688c6523b7b625f31bb044c8317269
|
|
| MD5 |
f4afdbdea96d344e7471d1b194c257e6
|
|
| BLAKE2b-256 |
2e4a9d2005cca17940b3c0a217ddb12a178ceb74e5308ea6cb0d4a423605be03
|