skip to content
==> README.md <==
1# @ajax/mesh-jobs-id
2
3A job's id and a payload's hash, and their text forms:
4
5- **Job ids** are `t.n`, the n-th job submitted in fleet term t (`mj_job_word`, `mj_parse_job`).
6- **Payload hashes** are sha256 values named in lowercase hex (`mj_hex`, `mj_unhex`), with
7  `mj_hash_words` to use one as a map key in byte order.
8
9## Ported from
10
11[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT):
12`crates/mesh-host/src/jobs.rs`: `JobId`, `job_word`, `parse_job`, `Hash`, `hex`, `unhex`.
13
14## Tests
15
16`tests/id.c`: words both ways, what `parse_job` refuses, hex both ways (either case), and the map key
17order.
18
19## Licence
20
21MIT. See the repository's LICENSE.