algovoi-journey-ref
Content-addressed journey references for the AlgoVoi substrate: bind a whole multi-agent task (its hops, the delegations between them, and a closed outcome) into one reference that recomputes from its own bytes.
journey_ref = "sha256:" + SHA-256(JCS(RFC 8785)({ delegations, hops, journey_outcome }))
hops and delegations are ordered lists of "sha256:"-prefixed refs;
journey_outcome is one of COMPLETE, PARTIAL, ABORTED. Construction and
tamper-detection only, fully offline: any change to the envelope changes the ref.
Install
pip install algovoi-journey-ref
Use
from algovoi_journey_ref import journey_ref, tamper_detected
ref = journey_ref({
"hops": ["sha256:" + "a" * 64],
"delegations": [],
"journey_outcome": "COMPLETE",
})
assert not tamper_detected(ref, {"hops": ["sha256:" + "a" * 64],
"delegations": [], "journey_outcome": "COMPLETE"})
Apache-2.0. Byte-identical to the TypeScript twin.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 algovoi_journey_ref-0.1.0.tar.gz.
File metadata
- Download URL: algovoi_journey_ref-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8144fac8e69884a9730eb5bc942413af9e78b249cbd869b948c715c8fdb51ce7
|
|
| MD5 |
4d7f3c8db2b67733f79f32c198b3401a
|
|
| BLAKE2b-256 |
41864df2fc3858664e8eae0b5b498d452330f5b08ace1b732babe7dedbeca22a
|
File details
Details for the file algovoi_journey_ref-0.1.0-py3-none-any.whl.
File metadata
- Download URL: algovoi_journey_ref-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3594d6724c119a09342bdb064b52f3afcbaf940af3fcd4d276b1721d26492cd4
|
|
| MD5 |
387d237d388a4c781ca38a89738c8be5
|
|
| BLAKE2b-256 |
ce8ff5304c2c9d7149fdb06e211fd2716f15bd8364b6ff9ddd606026bb566919
|