Skip to main content

archon core — Python

The identity floor in Python: Ed25519 key bytes, one canonical text spelling, the SPKI and PKCS-8 codecs, and domain-separated signing.

pip install bitspark-archon-core

The distribution is bitspark-archon-core; the import is archon_core. The prefix is a registry name only — PyPI, like crates.io, has a single flat namespace.

from archon_core import (
    public_key_from_seed, encode_key, sign_in_domain, verify_in_domain,
)

seed = bytes(range(32))
pub  = public_key_from_seed(seed)

encode_key(pub)
# 'ed25519:03a107bff3ce10be1d70dd18e74bc09967e4d6309ba50d5f1ddc8664125531b8'

sig = sign_in_domain(seed, "example.v1", b"hello")
verify_in_domain(pub, "example.v1", b"hello", sig)   # True
verify_in_domain(pub, "other.v1",   b"hello", sig)   # False — domains do not cross

What it is

Two questions and no others: are these bytes that key, and is this signature that key's. Authority and custody belong to their own layers — see the repository README.

crypto public_key_from_seed, sign/verify, sign_in_domain/verify_in_domain
hexbytes to_hex, and fixed-size decoders that accept exactly N bytes or fail
keytext encode_key/decode_key — ed25519:<64 hex>
keycodec RFC 5280 SPKI and RFC 5958 PKCS-8 v1 PEM, as a byte codec

Agreement is the claim

This core is held to the same hand-authored oracle as the Go, Rust and TypeScript cores — 60 cases in vectors/identity.json, recomputed rather than echoed. If it disagrees with the others about whether something is a valid key, signature or key text, that disagreement is the defect.

Two places where Python needed care to agree, both recorded in the source:

  • sign_in_domain is Ed25519ph with the domain as the RFC 8032 §5.1 context. cryptography cannot express it — it offers only pure sign(data). This package binds PyCryptodome, which can.
  • Small-order public keys are rejected. PyCryptodome's verifier accepts them; Go's crypto/ed25519 and ed25519-dalek do not. archon's profile is to reject, so verify checks [8]A against the identity using the library's own point arithmetic. Without it, two oracle cases pass in Python and fail everywhere else.

Verification

Signing raises rather than silently signing raw: an empty domain, or one over 255 bytes, is an error. Verification is total — every shape failure returns False, so a caller cannot mistake malformed for valid.

License

Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for bitspark-archon-core 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitspark-archon-core 0.10.0
File Size Uploaded Provenance Actions
bitspark_archon_core-0.10.0.tar.gz 16.8 kB With provenance Details for bitspark_archon_core-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bitspark-archon-core 0.10.0
File Interpreter ABI Platform Actions
bitspark_archon_core-0.10.0-py3-none-any.whl Python 3 none any Details for bitspark_archon_core-0.10.0-py3-none-any.whl

Total release size: 33.3 kB

Release files / bitspark_archon_core-0.10.0.tar.gz

Download URL bitspark_archon_core-0.10.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f809f9dc1473a449409a78c1038dfa74f2802d5ff2a41bcab6c9cf9e5b2dfc87
BLAKE2b-256 checksum
How to use checksums
6828b44e174b5d1948e1f060f6b74974630a3159365aff8689a028c0bd3bda6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Release files / bitspark_archon_core-0.10.0-py3-none-any.whl

Download URL bitspark_archon_core-0.10.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
485f75eb61f45308a3776832c8735d60b41c6b1ecd07713bc439970d70f29e2a
BLAKE2b-256 checksum
How to use checksums
8665302a179e004e4537867114b85593b66574ce8531a2b99c0023fc9cb4a77b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Security for bitspark-archon-core 0.10.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.

Select from 2 files

Attestation for bitspark_archon_core-0.10.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 Oct 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page