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.9.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.9.0
File Size Uploaded Provenance Actions
bitspark_archon_core-0.9.0.tar.gz 16.8 kB With provenance Details for bitspark_archon_core-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.3 kB

Release files / bitspark_archon_core-0.9.0.tar.gz

Download URL bitspark_archon_core-0.9.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
550cc5440585d411cb9cc4bb4976af66b6a0daa22b0b35d5cc22408dc10423f8
BLAKE2b-256 checksum
How to use checksums
77c068ba38458d8f4710732079768793430901b9fe8539fd06811e7bc4abcd1f
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 4, 2026.

Transparency log

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

Download URL bitspark_archon_core-0.9.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
877f79dd2bce470c77cc1b23bde7b985f1f7410c2eeffa2c2dc85712d0cf001e
BLAKE2b-256 checksum
How to use checksums
53ee2ab6c3da63fb61e8e25c164b8e4b1d4056b3f1df80aa747cbc0e794d3a2e
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 4, 2026.

Transparency log

Security for bitspark-archon-core 0.9.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.9.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 4, 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