Native cryptographic backend for samp-core (Substrate Account Messaging Protocol)
Project description
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.
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
Built Distributions
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 samp_crypto-1.0.0.tar.gz.
File metadata
- Download URL: samp_crypto-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e531e922d7ea2c3e173340be430b8d306d7a730892f80ccb9ade21d3380049
|
|
| MD5 |
020a070c34b11737e63912c94a33a578
|
|
| BLAKE2b-256 |
e752179e7ada4701c7b8ca294c3035e1398dc4e5f182bbcc7d76d18b158f6fdd
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0.tar.gz:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0.tar.gz -
Subject digest:
05e531e922d7ea2c3e173340be430b8d306d7a730892f80ccb9ade21d3380049 - Sigstore transparency entry: 1885167759
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 233.9 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cbb8b814d7d64bffb5174c130f6f6e8f4193f3a5e5030d771c9ff4239baec9e
|
|
| MD5 |
2c62ecfdf45ee9f6c93cd7a699af987c
|
|
| BLAKE2b-256 |
a0524785524e86cf4b5c450aa42aa9c834c5dbfba06909e21cabc34f54f0887f
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-win_amd64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-win_amd64.whl -
Subject digest:
8cbb8b814d7d64bffb5174c130f6f6e8f4193f3a5e5030d771c9ff4239baec9e - Sigstore transparency entry: 1885168148
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 347.3 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d07aa90101ab9cf039849180974249b44b2e87fe289d2d6ba62faaa44036c6
|
|
| MD5 |
61acc5b2446e13e3ca90c78c0be2089a
|
|
| BLAKE2b-256 |
115d2a5f08a217e0ad7c14b5cc9e5e038199acf9dbb9cc07f7f1d8fbf92b150e
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl -
Subject digest:
67d07aa90101ab9cf039849180974249b44b2e87fe289d2d6ba62faaa44036c6 - Sigstore transparency entry: 1885168397
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 321.5 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f69d373b5d7da5c4ab77e48e4a80ddc4461a20c94982e593cd40447da32221a
|
|
| MD5 |
6a48745d402124d9ac1d384c9f49d2e3
|
|
| BLAKE2b-256 |
86a0439799cf77f82beda7137bd9bc2424f846bedb413444c8fff5739dc8d47d
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl -
Subject digest:
3f69d373b5d7da5c4ab77e48e4a80ddc4461a20c94982e593cd40447da32221a - Sigstore transparency entry: 1885167911
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 348.8 kB
- Tags: CPython 3.9+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c685a47e5622e56d8dd901a398fec070128f26477ad3990c3f5a4ec1c9f0a0d9
|
|
| MD5 |
dab237e64a45386b7ada4807917b42b0
|
|
| BLAKE2b-256 |
26d937ec9dc004325c2db9d8cce2c3166fa1a767667bd66b1150ee8fd5a0939f
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
c685a47e5622e56d8dd901a398fec070128f26477ad3990c3f5a4ec1c9f0a0d9 - Sigstore transparency entry: 1885168266
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 323.0 kB
- Tags: CPython 3.9+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6440c250963887c159126b423972be6108696224b7af4eb31a1631957739f834
|
|
| MD5 |
45830db60b6de9f2bcb401a00ba8f99b
|
|
| BLAKE2b-256 |
6316f7f82cd0765b6288b080897e405059e92788eca133792cedef15a5e087cd
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl -
Subject digest:
6440c250963887c159126b423972be6108696224b7af4eb31a1631957739f834 - Sigstore transparency entry: 1885168029
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 320.1 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f11e529a29e32228fe70941ef69214bd4371b39b72079fa9a9f7f31ec3ce6545
|
|
| MD5 |
943fa7182363f70cd3299fcde87347da
|
|
| BLAKE2b-256 |
fb531aab85e876a64d0bd7425fef62ab2fb8bd71928bc519aa1d7b12dacf0789
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
f11e529a29e32228fe70941ef69214bd4371b39b72079fa9a9f7f31ec3ce6545 - Sigstore transparency entry: 1885168601
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type:
File details
Details for the file samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 343.8 kB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a532be987690be99959357aa35ab09c642729f6c92ee5fc59f25d43b1bb49a17
|
|
| MD5 |
96735d7b413d02378d58e9eaf57a4fbb
|
|
| BLAKE2b-256 |
b573ece5910c8ae08c0e0cf0108d175ae3b0d635596d274b8147a77443e6707e
|
Provenance
The following attestation bundles were made for samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl:
Publisher:
release-py-crypto.yml on samp-org/samp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
samp_crypto-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl -
Subject digest:
a532be987690be99959357aa35ab09c642729f6c92ee5fc59f25d43b1bb49a17 - Sigstore transparency entry: 1885168501
- Sigstore integration time:
-
Permalink:
samp-org/samp@4b5576a3772048ea81972d083edcf98c090591af -
Branch / Tag:
refs/tags/samp-crypto/v1.0.0 - Owner: https://github.com/samp-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-py-crypto.yml@4b5576a3772048ea81972d083edcf98c090591af -
Trigger Event:
push
-
Statement type: