Job ids (term.n) and payload hashes (sha256 hex): their types and text forms
$ sexc add @ajax/mesh-jobs-id- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 05:23v/# 1 version
- drwxr-xr-x-Oct 27 05:23files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 05:23 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0, @ajax/mesh-rs-parse ^0.1.0
- dependents
- @ajax/mesh-assemble, @ajax/mesh-blobd, @ajax/mesh-blobs-frame, @ajax/mesh-blobs-store, @ajax/mesh-jobs-frame, @ajax/mesh-jobs-node, @ajax/mesh-jobs-op, @ajax/mesh-jobs-out, @ajax/mesh-jobs-req, @ajax/mesh-jobs-spec, @ajax/mesh-jobs-table
- keywords
- mesh alphaos jobs id hash
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-jobs-id
- repository
- https://github.com/thomasdavis/alpha-c-mesh
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.