lyfe.ninja BlkSeal Python SDK
Lightweight Python client for signing and verifying digital content using lyfe.ninja's BlkSeal product powered by BlkBolt™.
Designed for zero dependencies, simple integration, and exact content verification.
Learn more: https://lyfe.ninja/
Integration guide: https://lyfe.ninja/products/BlkSeal/integration_guide/
Overview
BlkSeal provides:
- Deterministic hashing
- Minimal, explicit canonicalization
- Content signing (authenticated)
- Content verification (public or authenticated)
Installation
Install the latest stable release from PyPI
pip install lyfeninja-blkseal
Install from github
pip install git+https://github.com/lyfeninja/lyfeninja_blkseal_python_sdk.git
Quick Start
import lyfeninja_blkseal
#####################################################################
#load environment variables
#####################################################################
import os
lyfeninja_client_id = os.getenv('LYFENINJA_CLIENT_ID')
lyfeninja_client_secret = os.getenv('LYFENINJA_CLIENT_SECRET')
lyfeninja_lease_id = os.getenv('LYFENINJA_LEASE_ID')
#####################################################################
#initiate client
#####################################################################
client = lyfeninja_blkseal.BlkSealClient(
client_id=lyfeninja_client_id,
client_secret=lyfeninja_client_secret,
default_scope="sign:content verify:content",
)
#####################################################################
#get access token
#####################################################################
token = client.get_token()
print(token)
#####################################################################
# sign text
#####################################################################
#make request
response = client.sign_text(
lease_id=lyfeninja_lease_id,
text='Hello world!',
)
signature_b64 = response["signature_b64"]
print(signature_b64)
#####################################################################
# verify using public endpoint
#####################################################################
#make request
result = client.verify_text(
text='Hello world!',
signature_b64=signature_b64,
)
#print result
print(result)
#try modifying text to see how result changes
result = client.verify_text(
text='Hello World',
signature_b64=signature_b64x,
)
#print result
print(result)
#####################################################################
# verify using private endpoint (requires valid token)
#####################################################################
#make request
result = client.verify_text(
text="Hello world!",
signature_b64=signature_b64,
private=True,
)
#print result
print(result)
#####################################################################
# sign bytes / file
#####################################################################
#open file
with open("tests.py", "rb") as f:
file_bytes = f.read()
#make request
response = client.sign_bytes(
lease_id=lyfeninja_lease_id,
data=file_bytes,
)
#get signature
signature_b64 = response["signature_b64"]
#####################################################################
# verify bytes / file
#####################################################################
#open file
with open("tests.py", "rb") as f:
file_bytes = f.read()
#make request
result = client.verify_bytes(
data=file_bytes,
signature_b64=signature_b64,
)
#print result
print(result)
Metadata
Release files for lyfeninja-blkseal 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lyfeninja_blkseal-0.1.0.tar.gz | 9.2 kB | With provenance | Details for lyfeninja_blkseal-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lyfeninja_blkseal-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lyfeninja_blkseal-0.1.0-py3-none-any.whl |
Total release size: 18.7 kB
Release files / lyfeninja_blkseal-0.1.0.tar.gz
| Download URL | lyfeninja_blkseal-0.1.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f212e250a24141d40fb4ee2f320f8cdbac0aa319935eb4b0ad54badb8840233
|
|
BLAKE2b-256 checksum How to use checksums |
669031a7e390692d6a6e7adff6028fafd3bfa078722227a5872cbb00cb47ed42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / lyfeninja_blkseal-0.1.0-py3-none-any.whl
| Download URL | lyfeninja_blkseal-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85245f0ea49d3880c6abbd9196aeafbbeeb4be391f8a94e0074a75c404b84d28
|
|
BLAKE2b-256 checksum How to use checksums |
1461c38aca06cca9ea8c86279ca818daf427d7a97616c97f0e14354a4d8ac759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for lyfeninja-blkseal 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lyfeninja_blkseal-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.