tvl-depot/tvix/nix-compat/src/narinfo
Florian Klink ef8a8af0bf refactor(tvix/nix-compat): cleanup parse_{ca,hash} and fmt structs
These were used to format to and parse from strings.

Move this to the CAHash and NixHash structs directly, and be explicit in
the name about which encoding for digests is used.

For output path calculation, nix encodes the nixpaths in hex, but for
writing out NARInfos, it's using nixbase32.

Change-Id: Ia585a76a3811b2609e7ce259fda66a29403b7e07
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10079
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
2023-11-22 17:54:59 +00:00
..
fingerprint.rs feat(tvix/nix-compat/narinfo): add fingerprint 2023-11-19 22:34:59 +00:00
mod.rs refactor(tvix/nix-compat): cleanup parse_{ca,hash} and fmt structs 2023-11-22 17:54:59 +00:00
signature.rs feat(tvix/nix-compat): add narinfo::Signature::verify 2023-11-19 22:06:07 +00:00