samp-crypto
Native crypto backend for samp-core, the Python SDK for the Substrate Account Messaging Protocol (SAMP).
This package exposes the SAMP cryptographic primitives — sr25519 key agreement, HKDF-SHA256 key derivation, and ChaCha20-Poly1305 sealing — as a compiled extension module built with PyO3 and maturin. It is not meant to be used directly; install samp-core instead.
Install
pip install samp-core
samp-crypto is pulled in automatically as a dependency.
What it provides
A single extension module, samp_crypto, with stateless functions covering:
- sr25519 key derivation from a 32-byte seed
- Sealed message encryption to a recipient public key (per the SAMP capsule format)
- Group capsule wrapping and unwrapping
- View-tag derivation for inbox scanning
The protocol details are specified in the SAMP specification.
Supported platforms
Wheels are published for:
- CPython 3.9+ on Linux (x86_64, aarch64), macOS (x86_64, arm64), and Windows (x86_64)
A source distribution is also published; building from source requires a stable Rust toolchain.
License
MIT. See the repository LICENSE.
Metadata
Release files for samp-crypto 1.0.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 | |
|---|---|---|---|
| samp_crypto-1.0.0.tar.gz | 10.9 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| samp_crypto-1.0.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ ARM64 | Details |
| samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64 | Details |
| samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 2.2 MB
Release files / samp_crypto-1.0.0.tar.gz
| Download URL | samp_crypto-1.0.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05e531e922d7ea2c3e173340be430b8d306d7a730892f80ccb9ade21d3380049
|
|
BLAKE2b-256 checksum How to use checksums |
e752179e7ada4701c7b8ca294c3035e1398dc4e5f182bbcc7d76d18b158f6fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-win_amd64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 233.9 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8cbb8b814d7d64bffb5174c130f6f6e8f4193f3a5e5030d771c9ff4239baec9e
|
|
BLAKE2b-256 checksum How to use checksums |
a0524785524e86cf4b5c450aa42aa9c834c5dbfba06909e21cabc34f54f0887f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 347.3 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
67d07aa90101ab9cf039849180974249b44b2e87fe289d2d6ba62faaa44036c6
|
|
BLAKE2b-256 checksum How to use checksums |
115d2a5f08a217e0ad7c14b5cc9e5e038199acf9dbb9cc07f7f1d8fbf92b150e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 321.5 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3f69d373b5d7da5c4ab77e48e4a80ddc4461a20c94982e593cd40447da32221a
|
|
BLAKE2b-256 checksum How to use checksums |
86a0439799cf77f82beda7137bd9bc2424f846bedb413444c8fff5739dc8d47d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 348.8 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c685a47e5622e56d8dd901a398fec070128f26477ad3990c3f5a4ec1c9f0a0d9
|
|
BLAKE2b-256 checksum How to use checksums |
26d937ec9dc004325c2db9d8cce2c3166fa1a767667bd66b1150ee8fd5a0939f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 323.0 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
6440c250963887c159126b423972be6108696224b7af4eb31a1631957739f834
|
|
BLAKE2b-256 checksum How to use checksums |
6316f7f82cd0765b6288b080897e405059e92788eca133792cedef15a5e087cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 320.1 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f11e529a29e32228fe70941ef69214bd4371b39b72079fa9a9f7f31ec3ce6545
|
|
BLAKE2b-256 checksum How to use checksums |
fb531aab85e876a64d0bd7425fef62ab2fb8bd71928bc519aa1d7b12dacf0789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency logRelease files / samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 343.8 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
a532be987690be99959357aa35ab09c642729f6c92ee5fc59f25d43b1bb49a17
|
|
BLAKE2b-256 checksum How to use checksums |
b573ece5910c8ae08c0e0cf0108d175ae3b0d635596d274b8147a77443e6707e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 20, 2026.
Transparency log