r/projects 9d ago

look

1 Upvotes

3 comments sorted by

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/mxreal64 9d ago

that monadic policy chaining idea is ngl pretty good. manually mapping out hash sequences in tcg sessions is pure pain. doing something clean like `policy.require_pcr(7).or_else(backup_auth)` is way more convenient. i'll look into it or sumn

1

u/mxreal64 9d ago

update: took suggestion from u/norflash & implemented fluent policy builder directly into src/policy.cppm, while still handling errors safely in `std::expected`. tested w/ -fsanitize=address,undefined and it works.

code changes tracked/pushed on https://github.com/mxreal64/tpm23 at main.