Laws.parse_format: law of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend as Laws Lines 99-108 of bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/laws.bend&start_line=99&end_line=108 import Base import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend as PH import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend as PP # The PHC string parses back to its fields (bytes below 256). law parse_format: for +m: Nat for +t: Nat for +p: Nat for +salt: List<&2, U32> for +hash: List<&2, U32> for +hs: {PP.ok(salt) == True{} : Bool} for +hh: {PP.ok(hash) == True{} : Bool} {PH.parse(PH.format(PH.Phc{m, t, p, salt, hash})) == Some{PH.Phc{m, t, p, salt, hash}} : Maybe<&2, PH.Phc>} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend&name=ok https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/argon2/phc.bend&name=parse_format https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend&name=Phc https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend&name=format https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/phc.bend&name=parse