beaconcrypt 0.6.0__tar.gz → 0.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- beaconcrypt-0.7.1/.cargo/config.toml +1 -0
- beaconcrypt-0.7.1/.cargo/mutants-wasm.toml +13 -0
- beaconcrypt-0.7.1/.cargo/mutants.toml +54 -0
- beaconcrypt-0.7.1/.config/nextest.toml +41 -0
- beaconcrypt-0.7.1/.gitattributes +6 -0
- beaconcrypt-0.7.1/.github/workflows/codeql.yml +105 -0
- beaconcrypt-0.7.1/.github/workflows/formal-verification.yml +173 -0
- beaconcrypt-0.7.1/.github/workflows/go.yml +209 -0
- beaconcrypt-0.7.1/.github/workflows/property-tests.yml +51 -0
- beaconcrypt-0.7.1/.github/workflows/python.yml +196 -0
- beaconcrypt-0.7.1/.github/workflows/release.yml +191 -0
- beaconcrypt-0.7.1/.github/workflows/rust.yml +69 -0
- beaconcrypt-0.7.1/.github/workflows/wasm.yml +51 -0
- beaconcrypt-0.7.1/.gitignore +85 -0
- beaconcrypt-0.7.1/.gitmodules +6 -0
- beaconcrypt-0.7.1/AGENTS.md +33 -0
- beaconcrypt-0.7.1/Cargo.lock +2059 -0
- beaconcrypt-0.7.1/Cargo.toml +25 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/PKG-INFO +1 -1
- beaconcrypt-0.7.1/README.md +171 -0
- beaconcrypt-0.7.1/beaconcrypt/Cargo.toml +102 -0
- beaconcrypt-0.7.1/beaconcrypt/bindings.h +831 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/adapter_tests.rs +638 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/batched_postgres_tests.rs +555 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/buffered.rs +104 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/concurrency.rs +1035 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/concurrency_contracts.rs +231 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/concurrency_duplex_tests.rs +57 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/concurrency_runtime_tests.rs +773 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/concurrency_schedule.rs +301 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/concurrency_schedule_tests.rs +426 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/database.rs +435 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/main.rs +921 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/main_tests.rs +769 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/native_postgres_tests.rs +377 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/postgres.rs +887 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/postgres_batch.rs +365 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/postgres_batch_sql_tests.rs +295 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/postgres_batch_tests.rs +520 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/summarize.py +1219 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/test_concurrent_summary.py +471 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/persistence_bench/test_summarize.py +242 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/examples/rust/main.rs +74 -25
- beaconcrypt-0.7.1/beaconcrypt/examples/sqlite/main.rs +59 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/sqlite/optimistic.rs +158 -0
- beaconcrypt-0.7.1/beaconcrypt/examples/sqlite/store.rs +95 -0
- beaconcrypt-0.7.1/beaconcrypt/proptest-regressions/row_rng.txt +2 -0
- beaconcrypt-0.7.1/beaconcrypt/src/auth.rs +579 -0
- beaconcrypt-0.7.1/beaconcrypt/src/beacon.rs +788 -0
- beaconcrypt-0.7.1/beaconcrypt/src/cbinds.rs +2802 -0
- beaconcrypt-0.7.1/beaconcrypt/src/collections.rs +59 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/deser.rs +214 -27
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/error.rs +1 -1
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/lib.rs +41 -48
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/persistence.rs +556 -110
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/pqxdh.rs +298 -87
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/pybinds.rs +277 -28
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/ratchet.rs +364 -131
- beaconcrypt-0.7.1/beaconcrypt/src/row_binding_server.rs +92 -0
- beaconcrypt-0.7.1/beaconcrypt/src/row_cbinds.rs +1566 -0
- beaconcrypt-0.7.1/beaconcrypt/src/row_persistence.rs +3111 -0
- beaconcrypt-0.7.1/beaconcrypt/src/row_pybinds.rs +687 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/ser.rs +81 -8
- beaconcrypt-0.7.1/beaconcrypt/src/server.rs +1110 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/shared.rs +144 -43
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/src/wire.rs +17 -5
- beaconcrypt-0.7.1/beaconcrypt/tests/backend_compat.rs +1051 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/beacon.rs +2 -2
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/c_persistence.c +42 -2
- beaconcrypt-0.7.1/beaconcrypt/tests/cached_row_persistence.rs +809 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/common/mod.rs +11 -2
- beaconcrypt-0.7.1/beaconcrypt/tests/common/sodium_oracle.rs +24 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/construction.rs +11 -6
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/message_size.rs +78 -24
- beaconcrypt-0.7.1/beaconcrypt/tests/mldsa.rs +426 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/mldsa_vectors.rs +640 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/peer_retirement.rs +218 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/persistence_properties.rs +490 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/protocol.rs +82 -47
- beaconcrypt-0.7.1/beaconcrypt/tests/ratchet_properties.rs +595 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/raw_receive.rs +8 -4
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/record_opening.rs +80 -9
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/registration_completion.rs +14 -4
- beaconcrypt-0.7.1/beaconcrypt/tests/registration_properties.rs +341 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/registration_response_alias.rs +14 -24
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/rooterberg.rs +248 -34
- beaconcrypt-0.7.1/beaconcrypt/tests/row_persistence.rs +1266 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/row_rng.rs +286 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/send_allocation.rs +115 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/send_outcomes.rs +349 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/tests/server.rs +139 -47
- beaconcrypt-0.7.1/beaconcrypt/tests/snapshot_failures.rs +245 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/transcript_ad.rs +259 -0
- beaconcrypt-0.7.1/beaconcrypt/tests/wycheproof.rs +977 -0
- beaconcrypt-0.7.1/beaconcrypt-core/.gitignore +2 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/Cargo.toml +8 -2
- beaconcrypt-0.7.1/beaconcrypt-core/Makefile +1275 -0
- beaconcrypt-0.7.1/beaconcrypt-core/README.md +176 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/agreement.rs +494 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/authentication.rs +281 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/commitment.rs +12 -12
- beaconcrypt-0.7.1/beaconcrypt-core/src/constants.rs +1 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/lib.rs +36 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/peer.rs +243 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/pqxdh/concrete.rs +5 -5
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/pqxdh.rs +70 -91
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/ratchet/control.rs +35 -16
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/ratchet/refined.rs +42 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/ratchet.rs +39 -9
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/record.rs +6 -6
- beaconcrypt-0.7.1/beaconcrypt-core/src/record_effects.rs +394 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/registration.rs +1254 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/session.rs +166 -0
- beaconcrypt-0.7.1/beaconcrypt-core/src/transport.rs +176 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/agreement.rs +304 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/authentication.rs +329 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/fidelity/peer_effects.rs +374 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/fidelity/record_effects.rs +1905 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/fidelity/registration_effects.rs +2199 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/fidelity/transport.rs +332 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/mldsa_joint_fidelity.rs +385 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/proverif_transcript_fidelity.rs +23936 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/record_effects.rs +264 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/registration.rs +1082 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/session.rs +82 -0
- beaconcrypt-0.7.1/beaconcrypt-core/tests/transport.rs +179 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/Cargo.toml +24 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/README.md +9 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_aead.rs +66 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_generichash.rs +59 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_kdf.rs +37 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_kem.rs +85 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_kx.rs +49 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_scalarmult.rs +18 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/crypto_sign.rs +108 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/src/lib.rs +152 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/tests/contracts.rs +113 -0
- beaconcrypt-0.7.1/beaconcrypt-crypto/tests/hkdf_allocation.rs +60 -0
- beaconcrypt-0.7.1/beaconcrypt-ffi/Cargo.toml +56 -0
- {beaconcrypt-0.6.0/beaconcrypt → beaconcrypt-0.7.1/beaconcrypt-ffi}/build.rs +22 -12
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/Cargo.toml +8 -2
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/README.md +5 -1
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/generated/README.md +3 -1
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/schema/transport.cddl +4 -3
- beaconcrypt-0.7.1/beaconcrypt-parse/src/frame.rs +237 -0
- beaconcrypt-0.7.1/beaconcrypt-parse/src/frame_tests.rs +167 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/src/generated/transport.rs +343 -62
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/src/lib.rs +22 -18
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/src/preflight_tests.rs +12 -15
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/tests/codec.rs +61 -19
- beaconcrypt-0.7.1/beaconcrypt-parse/tests/frame_parts.rs +150 -0
- beaconcrypt-0.7.1/beaconcrypt-parse/tests/properties.rs +442 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/Cargo.toml +19 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/src/abi.rs +165 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/src/abi_tests.rs +271 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/src/lib.rs +491 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/src/store.rs +178 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/src/store_tests.rs +243 -0
- beaconcrypt-0.7.1/beaconcrypt-wasm/src/tests.rs +734 -0
- beaconcrypt-0.7.1/beaconcrypt.pyi +323 -0
- beaconcrypt-0.7.1/examples/c/CMakeLists.txt +70 -0
- beaconcrypt-0.7.1/examples/c/README.md +20 -0
- beaconcrypt-0.7.1/examples/c/main.c +396 -0
- beaconcrypt-0.7.1/examples/go/.gitignore +1 -0
- beaconcrypt-0.7.1/examples/go/README.md +11 -0
- beaconcrypt-0.7.1/examples/go/go.mod +12 -0
- beaconcrypt-0.7.1/examples/go/go.sum +4 -0
- beaconcrypt-0.7.1/examples/go/main.go +215 -0
- beaconcrypt-0.7.1/examples/python/.gitignore +2 -0
- beaconcrypt-0.7.1/examples/python/README.md +9 -0
- beaconcrypt-0.7.1/examples/python/main.py +97 -0
- beaconcrypt-0.7.1/examples/python/pyproject.toml +11 -0
- beaconcrypt-0.7.1/flake.lock +224 -0
- beaconcrypt-0.7.1/flake.nix +33 -0
- beaconcrypt-0.7.1/go/api.go +44 -0
- beaconcrypt-0.7.1/go/api_parity_test.go +296 -0
- beaconcrypt-0.7.1/go/beaconcrypt_cgo.go +413 -0
- beaconcrypt-0.7.1/go/beaconcrypt_go.c +52 -0
- beaconcrypt-0.7.1/go/beaconcrypt_go.h +26 -0
- beaconcrypt-0.7.1/go/beaconcrypt_row_go.c +73 -0
- beaconcrypt-0.7.1/go/beaconcrypt_row_go.h +16 -0
- beaconcrypt-0.7.1/go/beaconcrypt_test.go +1111 -0
- beaconcrypt-0.7.1/go/beaconcrypt_wazero.go +378 -0
- beaconcrypt-0.7.1/go/go.mod +10 -0
- beaconcrypt-0.7.1/go/go.sum +6 -0
- beaconcrypt-0.7.1/go/message_boundary_test.go +124 -0
- beaconcrypt-0.7.1/go/peer_retirement_test.go +84 -0
- beaconcrypt-0.7.1/go/persistence_cgo.go +362 -0
- beaconcrypt-0.7.1/go/persistence_cgo_test.go +83 -0
- beaconcrypt-0.7.1/go/persistence_test.go +637 -0
- beaconcrypt-0.7.1/go/persistence_types.go +90 -0
- beaconcrypt-0.7.1/go/row_cached_cgo_test.go +173 -0
- beaconcrypt-0.7.1/go/row_empty_pointer_cgo_test.go +180 -0
- beaconcrypt-0.7.1/go/row_persistence_cgo.go +373 -0
- beaconcrypt-0.7.1/go/row_persistence_cgo_test.go +359 -0
- beaconcrypt-0.7.1/go/row_persistence_types.go +98 -0
- beaconcrypt-0.7.1/go/row_persistence_wazero.go +68 -0
- beaconcrypt-0.7.1/go/row_persistence_wazero_test.go +29 -0
- beaconcrypt-0.7.1/go/row_retirement_cgo_test.go +51 -0
- beaconcrypt-0.7.1/go/row_session_cgo.go +288 -0
- beaconcrypt-0.7.1/go/row_session_cgo_test.go +340 -0
- beaconcrypt-0.7.1/go/runtime_wazero.go +517 -0
- beaconcrypt-0.7.1/go/runtime_wazero_test.go +377 -0
- beaconcrypt-0.7.1/go/scripts/generate_kat_vectors.go +328 -0
- beaconcrypt-0.7.1/go/scripts/wasm-test-runner/main.go +186 -0
- beaconcrypt-0.7.1/go/send_outcome.go +46 -0
- beaconcrypt-0.7.1/go/send_outcome_cgo.go +109 -0
- beaconcrypt-0.7.1/go/send_outcome_row_cgo_test.go +32 -0
- beaconcrypt-0.7.1/go/send_outcome_test.go +223 -0
- beaconcrypt-0.7.1/go/send_outcome_wazero.go +58 -0
- beaconcrypt-0.7.1/go/testdata/interop/main.go +188 -0
- beaconcrypt-0.7.1/hax.toml +7 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/pyproject.toml +16 -9
- beaconcrypt-0.7.1/rustfmt.toml +5 -0
- beaconcrypt-0.7.1/scripts/build-wasm.sh +24 -0
- beaconcrypt-0.7.1/scripts/certify_registration_shallow_dispatch.py +194 -0
- beaconcrypt-0.7.1/scripts/check-no-std.sh +113 -0
- beaconcrypt-0.7.1/scripts/check_adapter_panic_freedom.py +1923 -0
- beaconcrypt-0.7.1/scripts/check_computational_completion.py +341 -0
- beaconcrypt-0.7.1/scripts/check_core_source_coverage.py +928 -0
- beaconcrypt-0.7.1/scripts/check_lean_panic_freedom.py +230 -0
- beaconcrypt-0.7.1/scripts/check_registration_codec_extraction.py +280 -0
- beaconcrypt-0.7.1/scripts/derive_multi_opening.py +270 -0
- beaconcrypt-0.7.1/scripts/evaluate_registration_codec_toolchain.py +316 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_authentication.py +601 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_beacon_constructor.py +446 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_init_authentication.py +419 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_public_ordinary.py +395 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_public_server_entry.py +438 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_public_wrappers.py +799 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_ratchet_kdf.py +516 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_record.py +614 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_record_helpers.py +433 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_record_routing.py +397 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_record_send.py +496 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_registration_writer.py +409 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_seal.py +493 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_seal_join.py +420 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_server_constructor.py +445 -0
- beaconcrypt-0.7.1/scripts/extract_adapter_wire.py +398 -0
- beaconcrypt-0.7.1/scripts/extract_frame_codec.py +427 -0
- beaconcrypt-0.7.1/scripts/extract_frame_dispatch.py +448 -0
- beaconcrypt-0.7.1/scripts/extract_registration_array.py +397 -0
- beaconcrypt-0.7.1/scripts/extract_registration_header_optimal.py +346 -0
- beaconcrypt-0.7.1/scripts/extract_registration_preflight.py +378 -0
- beaconcrypt-0.7.1/scripts/extract_registration_primitives.py +389 -0
- beaconcrypt-0.7.1/scripts/extract_registration_schema.py +556 -0
- beaconcrypt-0.7.1/scripts/extract_registration_serializer.py +487 -0
- beaconcrypt-0.7.1/scripts/extract_registration_shallow.py +406 -0
- beaconcrypt-0.7.1/scripts/extract_registration_validator.py +513 -0
- beaconcrypt-0.7.1/scripts/generate_kat_vectors.py +251 -0
- beaconcrypt-0.7.1/scripts/generate_python_stubs.py +141 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_authentication_requests.py +137 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_build_observed.py +121 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_finish_observed.py +100 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_init_authentication_requests.py +144 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_public_ordinary_requests.py +138 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_public_wrapper_requests.py +149 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_record_helper_requests.py +156 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_record_requests.py +157 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_record_send_requests.py +143 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_registration_writer_requests.py +141 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_seal_join_requests.py +129 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_seal_requests.py +168 -0
- beaconcrypt-0.7.1/scripts/lift_adapter_wire_requests.py +113 -0
- beaconcrypt-0.7.1/scripts/package-wasm.py +356 -0
- beaconcrypt-0.7.1/scripts/prepare_adapter_public_ordinary.py +70 -0
- beaconcrypt-0.7.1/scripts/prepare_adapter_public_wrappers.py +343 -0
- beaconcrypt-0.7.1/scripts/prepare_adapter_record_helpers.py +229 -0
- beaconcrypt-0.7.1/scripts/prepare_adapter_record_send.py +96 -0
- beaconcrypt-0.7.1/scripts/prepare_adapter_seal_join.py +153 -0
- beaconcrypt-0.7.1/scripts/prepare_frame_dispatch_source.py +147 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_array_source.py +140 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_codec_aeneas.py +153 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_codec_source.py +488 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_preflight_source.py +461 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_serializer_source.py +225 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_shallow_source.py +292 -0
- beaconcrypt-0.7.1/scripts/prepare_registration_validator_source.py +173 -0
- beaconcrypt-0.7.1/scripts/registration_codec_normalization.py +1255 -0
- beaconcrypt-0.7.1/scripts/test-wasm-interop.py +169 -0
- beaconcrypt-0.7.1/scripts/test-wasm.sh +29 -0
- beaconcrypt-0.7.1/scripts/test_adapter_record_send_extraction.py +156 -0
- beaconcrypt-0.7.1/scripts/test_certify_registration_shallow_dispatch.py +119 -0
- beaconcrypt-0.7.1/scripts/test_check_adapter_panic_freedom.py +1117 -0
- beaconcrypt-0.7.1/scripts/test_check_computational_completion.py +410 -0
- beaconcrypt-0.7.1/scripts/test_check_core_source_coverage.py +343 -0
- beaconcrypt-0.7.1/scripts/test_check_lean_panic_freedom.py +141 -0
- beaconcrypt-0.7.1/scripts/test_check_registration_codec_extraction.py +145 -0
- beaconcrypt-0.7.1/scripts/test_evaluate_registration_codec_toolchain.py +313 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_authentication.py +631 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_beacon_constructor.py +153 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_init_authentication.py +137 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_public_ordinary.py +52 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_public_server_entry.py +223 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_public_wrappers.py +192 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_ratchet_kdf.py +253 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_record.py +629 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_record_helpers.py +260 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_record_routing.py +116 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_registration_writer.py +150 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_seal.py +327 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_seal_join.py +258 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_server_constructor.py +141 -0
- beaconcrypt-0.7.1/scripts/test_extract_adapter_wire.py +161 -0
- beaconcrypt-0.7.1/scripts/test_extract_frame_codec.py +119 -0
- beaconcrypt-0.7.1/scripts/test_extract_frame_dispatch.py +146 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_array.py +147 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_header_optimal.py +126 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_preflight.py +143 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_primitives.py +144 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_schema.py +110 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_serializer.py +179 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_shallow.py +161 -0
- beaconcrypt-0.7.1/scripts/test_extract_registration_validator.py +152 -0
- beaconcrypt-0.7.1/scripts/test_generate_python_stubs.py +120 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_authentication_requests.py +140 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_init_authentication_requests.py +86 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_observed_boundaries.py +107 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_public_wrapper_requests.py +116 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_record_helper_requests.py +147 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_record_requests.py +124 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_record_send_requests.py +126 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_registration_writer_requests.py +73 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_seal_join_requests.py +215 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_seal_requests.py +190 -0
- beaconcrypt-0.7.1/scripts/test_lift_adapter_wire_requests.py +98 -0
- beaconcrypt-0.7.1/scripts/test_package_wasm.py +279 -0
- beaconcrypt-0.7.1/scripts/test_prepare_adapter_public_ordinary.py +53 -0
- beaconcrypt-0.7.1/scripts/test_prepare_adapter_public_wrappers.py +236 -0
- beaconcrypt-0.7.1/scripts/test_prepare_adapter_record_helpers.py +156 -0
- beaconcrypt-0.7.1/scripts/test_prepare_adapter_seal_join.py +151 -0
- beaconcrypt-0.7.1/scripts/test_prepare_registration_codec_source.py +157 -0
- beaconcrypt-0.7.1/scripts/test_prepare_registration_serializer_source.py +148 -0
- beaconcrypt-0.7.1/scripts/test_prepare_registration_validator_source.py +90 -0
- beaconcrypt-0.7.1/scripts/wasm-toolchain.json +5 -0
- beaconcrypt-0.7.1/tests/test_construction.py +33 -0
- beaconcrypt-0.7.1/tests/test_encryption.py +315 -0
- beaconcrypt-0.7.1/tests/test_message_size.py +8 -0
- beaconcrypt-0.7.1/tests/test_peer_retirement.py +67 -0
- beaconcrypt-0.7.1/tests/test_persistence.py +480 -0
- beaconcrypt-0.7.1/tests/test_registration.py +141 -0
- beaconcrypt-0.7.1/tests/test_row_cached.py +128 -0
- beaconcrypt-0.7.1/tests/test_row_persistence.py +234 -0
- beaconcrypt-0.7.1/tests/test_row_threads.py +89 -0
- beaconcrypt-0.7.1/tests/test_row_transactions.py +178 -0
- beaconcrypt-0.7.1/tests/test_send_outcomes.py +158 -0
- beaconcrypt-0.7.1/tests/test_server_state.py +112 -0
- beaconcrypt-0.7.1/uv.lock +244 -0
- beaconcrypt-0.6.0/Cargo.lock +0 -906
- beaconcrypt-0.6.0/Cargo.toml +0 -9
- beaconcrypt-0.6.0/beaconcrypt/Cargo.toml +0 -74
- beaconcrypt-0.6.0/beaconcrypt/LICENSE +0 -7
- beaconcrypt-0.6.0/beaconcrypt/README.md +0 -159
- beaconcrypt-0.6.0/beaconcrypt/bindings.h +0 -440
- beaconcrypt-0.6.0/beaconcrypt/src/beacon.rs +0 -562
- beaconcrypt-0.6.0/beaconcrypt/src/cbinds.rs +0 -1495
- beaconcrypt-0.6.0/beaconcrypt/src/server.rs +0 -576
- beaconcrypt-0.6.0/beaconcrypt/tests/wycheproof.rs +0 -471
- beaconcrypt-0.6.0/beaconcrypt-core/LICENSE +0 -7
- beaconcrypt-0.6.0/beaconcrypt-core/README.md +0 -5
- beaconcrypt-0.6.0/beaconcrypt-core/src/constants.rs +0 -1
- beaconcrypt-0.6.0/beaconcrypt-core/src/lib.rs +0 -29
- beaconcrypt-0.6.0/beaconcrypt-parse/src/sizing.rs +0 -127
- beaconcrypt-0.6.0/beaconcrypt.pyi +0 -107
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/LICENSE +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt/examples/rust/README.md +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/src/ratchet/concrete.rs +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-core/tests/general_registration_admission.rs +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/LICENSE-0BSD +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/generated/LICENSE +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/scripts/regenerate.py +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/src/generated/cbordetver.rs +0 -0
- {beaconcrypt-0.6.0 → beaconcrypt-0.7.1}/beaconcrypt-parse/src/generated/cbordetveraux.rs +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
additional_cargo_args = ["--locked"]
|
|
2
|
+
test_workspace = false
|
|
3
|
+
gitignore = true
|
|
4
|
+
|
|
5
|
+
# Keep exact locations so source edits require reviewing these equivalences again.
|
|
6
|
+
exclude_re = [
|
|
7
|
+
# Pointer and length occupy disjoint 32-bit halves, so OR and XOR agree.
|
|
8
|
+
"^beaconcrypt-wasm/src/abi\\.rs:164:57: replace \\| with \\^ in encode_result$",
|
|
9
|
+
# wasm32 rejects reservations above isize::MAX; the production 256 MiB guest cap
|
|
10
|
+
# also rejects i32::MAX itself. Both changed guards therefore still return zero.
|
|
11
|
+
"^beaconcrypt-wasm/src/abi\\.rs:133:21: replace > with == in bc_alloc$",
|
|
12
|
+
"^beaconcrypt-wasm/src/abi\\.rs:133:21: replace > with >= in bc_alloc$",
|
|
13
|
+
]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
additional_cargo_args = ["--locked"]
|
|
2
|
+
|
|
3
|
+
# Mutants in beaconcrypt-core must also be exercised by beaconcrypt's integration and vector tests.
|
|
4
|
+
test_workspace = true
|
|
5
|
+
|
|
6
|
+
# Keep local scratch copies small. CI uses --in-place.
|
|
7
|
+
gitignore = true
|
|
8
|
+
|
|
9
|
+
# These feature-gated adapters are tested through Go and Python rather than cargo test.
|
|
10
|
+
# cargo-mutants does not evaluate cfg predicates, so default-feature runs would otherwise report mutations in these files as missed without compiling them.
|
|
11
|
+
exclude_globs = [
|
|
12
|
+
# The native package compiles beaconcrypt's exact source with different crate types.
|
|
13
|
+
# Mutate that shared source once through the tested Rust package above.
|
|
14
|
+
"beaconcrypt-ffi/**",
|
|
15
|
+
# Linear-memory pointers and host imports require the actual WASI runner.
|
|
16
|
+
# Run the complete guest mutation suite with scripts/test-wasm.sh --mutants.
|
|
17
|
+
"beaconcrypt-wasm/src/**",
|
|
18
|
+
# Imported EverCDDL output is checked by reproducible generation and codec tests.
|
|
19
|
+
# Keep all handwritten beaconcrypt-parse adapters in the mutation suite.
|
|
20
|
+
"beaconcrypt-parse/src/generated/**",
|
|
21
|
+
"beaconcrypt/src/cbinds.rs",
|
|
22
|
+
"beaconcrypt/src/pybinds.rs",
|
|
23
|
+
# Shared dispatch is compiled only by those same language-binding features.
|
|
24
|
+
"beaconcrypt/src/row_binding_server.rs",
|
|
25
|
+
"beaconcrypt/src/row_cbinds.rs",
|
|
26
|
+
"beaconcrypt/src/row_pybinds.rs",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
# The core mutations below differ only for states that the public constructors and persistence validation cannot create: out-of-range private ratchet offsets, inconsistent results from pure core transitions, or out-of-range private cache indices.
|
|
30
|
+
# The bounded lookup's remaining counter is also redundant at runtime with its independently advancing, capacity-checked slot, but is retained as the extraction backend's explicit termination measure.
|
|
31
|
+
# Keep the full mutant name so source changes force re-evaluation.
|
|
32
|
+
exclude_re = [
|
|
33
|
+
# The packed descriptor combines disjoint 32-bit halves, so OR and XOR agree for every pointer and length.
|
|
34
|
+
"^beaconcrypt-wasm/src/abi\\.rs:163:57: replace \\| with \\^ in encode_result$",
|
|
35
|
+
# Under wasm32 and the production 256 MiB guest cap, fallible Vec reservation rejects every size at or above i32::MAX; both mutated guards still return zero for these requests.
|
|
36
|
+
"^beaconcrypt-wasm/src/abi\\.rs:132:21: replace > with == in bc_alloc$",
|
|
37
|
+
"^beaconcrypt-wasm/src/abi\\.rs:132:21: replace > with >= in bc_alloc$",
|
|
38
|
+
|
|
39
|
+
"^beaconcrypt-core/src/ratchet/control\\.rs:369:18: replace > with >= in lookup_receive_key$",
|
|
40
|
+
"^beaconcrypt-core/src/ratchet/control\\.rs:385:13: replace -= with \\+= in lookup_receive_key$",
|
|
41
|
+
"^beaconcrypt-core/src/ratchet/control\\.rs:385:13: replace -= with /= in lookup_receive_key$",
|
|
42
|
+
|
|
43
|
+
# These guards repeat guarantees from pure transitions and private continuation bookkeeping.
|
|
44
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:141:50: replace \\|\\| with && in begin_send$",
|
|
45
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:369:4: replace \\|\\| with && in ReceiveKdf<Context>::resume$",
|
|
46
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:370:4: replace \\|\\| with && in ReceiveKdf<Context>::resume$",
|
|
47
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:371:4: replace \\|\\| with && in ReceiveKdf<Context>::resume$",
|
|
48
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:574:4: replace \\|\\| with && in ReceiveAdvanceKdf::resume$",
|
|
49
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:575:4: replace \\|\\| with && in ReceiveAdvanceKdf::resume$",
|
|
50
|
+
"^beaconcrypt-core/src/ratchet/concrete\\.rs:576:4: replace \\|\\| with && in ReceiveAdvanceKdf::resume$",
|
|
51
|
+
|
|
52
|
+
# These helpers are compiled only as support for the excluded C and Python adapters.
|
|
53
|
+
"^beaconcrypt/src/persistence\\.rs:[0-9]+:[0-9]+: .*BindingSnapshotStore",
|
|
54
|
+
]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Keep all source-fidelity guards enabled alongside runtime and mutation tests.
|
|
2
|
+
nextest-version = "0.9.149"
|
|
3
|
+
|
|
4
|
+
[profile.mutants]
|
|
5
|
+
test-threads = 2
|
|
6
|
+
fail-fast = true
|
|
7
|
+
retries = 0
|
|
8
|
+
|
|
9
|
+
[[profile.mutants.overrides]]
|
|
10
|
+
filter = 'binary(=message_size)'
|
|
11
|
+
priority = -100
|
|
12
|
+
|
|
13
|
+
[[profile.mutants.overrides]]
|
|
14
|
+
filter = 'binary(/properties$/)'
|
|
15
|
+
priority = -90
|
|
16
|
+
|
|
17
|
+
[[profile.mutants.overrides]]
|
|
18
|
+
filter = 'binary(=proverif_transcript_fidelity)'
|
|
19
|
+
priority = -50
|
|
20
|
+
|
|
21
|
+
[[profile.mutants.overrides]]
|
|
22
|
+
filter = 'package(=beaconcrypt-crypto)'
|
|
23
|
+
priority = 100
|
|
24
|
+
|
|
25
|
+
[[profile.mutants.overrides]]
|
|
26
|
+
filter = 'package(=beaconcrypt-core)'
|
|
27
|
+
priority = 90
|
|
28
|
+
|
|
29
|
+
[[profile.mutants.overrides]]
|
|
30
|
+
filter = 'package(=beaconcrypt-parse)'
|
|
31
|
+
priority = 80
|
|
32
|
+
# Detect non-terminating codec mutants within each isolated test process.
|
|
33
|
+
slow-timeout = { period = "5s", terminate-after = 2, grace-period = "1s" }
|
|
34
|
+
|
|
35
|
+
[[profile.mutants.overrides]]
|
|
36
|
+
filter = 'package(=beaconcrypt) & binary(=backend_compat)'
|
|
37
|
+
priority = 70
|
|
38
|
+
|
|
39
|
+
[[profile.mutants.overrides]]
|
|
40
|
+
filter = 'package(=beaconcrypt) & kind(lib)'
|
|
41
|
+
priority = 60
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Source-fidelity checks compare exact multiline text embedded with include_str!.
|
|
2
|
+
# Keep text files in LF form on every platform, including Windows checkouts.
|
|
3
|
+
* text=auto eol=lf
|
|
4
|
+
|
|
5
|
+
# Preserve the pinned Aeneas templates' trailing blank lines byte for byte.
|
|
6
|
+
beaconcrypt-core/proofs/lean/BeaconcryptCore/AuthenticationExtraction/*External*.lean whitespace=-blank-at-eof
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ "main" ]
|
|
17
|
+
pull_request:
|
|
18
|
+
branches: [ "main" ]
|
|
19
|
+
schedule:
|
|
20
|
+
- cron: '41 12 * * 5'
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
analyze:
|
|
24
|
+
name: Analyze (${{ matrix.language }})
|
|
25
|
+
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
|
26
|
+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
|
27
|
+
# - https://gh.io/supported-runners-and-hardware-resources
|
|
28
|
+
# - https://gh.io/using-larger-runners (GitHub.com only)
|
|
29
|
+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
|
|
30
|
+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-24.04' }}
|
|
31
|
+
permissions:
|
|
32
|
+
# required for all workflows
|
|
33
|
+
security-events: write
|
|
34
|
+
|
|
35
|
+
# required to fetch internal or private CodeQL packs
|
|
36
|
+
packages: read
|
|
37
|
+
|
|
38
|
+
# only required for workflows in private repositories
|
|
39
|
+
actions: read
|
|
40
|
+
contents: read
|
|
41
|
+
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
include:
|
|
46
|
+
- language: actions
|
|
47
|
+
build-mode: none
|
|
48
|
+
- language: go
|
|
49
|
+
build-mode: autobuild
|
|
50
|
+
- language: python
|
|
51
|
+
build-mode: none
|
|
52
|
+
- language: rust
|
|
53
|
+
build-mode: none
|
|
54
|
+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
|
|
55
|
+
# Use `c-cpp` to analyze code written in C, C++ or both
|
|
56
|
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
|
|
57
|
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
|
|
58
|
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
|
|
59
|
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
|
|
60
|
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
|
|
61
|
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
|
62
|
+
steps:
|
|
63
|
+
- name: Checkout repository
|
|
64
|
+
uses: actions/checkout@v7
|
|
65
|
+
|
|
66
|
+
# Add any setup steps before running the `github/codeql-action/init` action.
|
|
67
|
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
|
68
|
+
# or others). This is typically only required for manual builds.
|
|
69
|
+
# - name: Setup runtime (example)
|
|
70
|
+
# uses: actions/setup-example@v1
|
|
71
|
+
|
|
72
|
+
# Initializes the CodeQL tools for scanning.
|
|
73
|
+
- name: Initialize CodeQL
|
|
74
|
+
uses: github/codeql-action/init@v4
|
|
75
|
+
with:
|
|
76
|
+
languages: ${{ matrix.language }}
|
|
77
|
+
build-mode: ${{ matrix.build-mode }}
|
|
78
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
79
|
+
# By default, queries listed here will override any specified in a config file.
|
|
80
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
81
|
+
|
|
82
|
+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
83
|
+
# queries: security-extended,security-and-quality
|
|
84
|
+
|
|
85
|
+
# If the analyze step fails for one of the languages you are analyzing with
|
|
86
|
+
# "We were unable to automatically build your code", modify the matrix above
|
|
87
|
+
# to set the build mode to "manual" for that language. Then modify this step
|
|
88
|
+
# to build your code.
|
|
89
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
90
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
91
|
+
- name: Run manual build steps
|
|
92
|
+
if: matrix.build-mode == 'manual'
|
|
93
|
+
shell: bash
|
|
94
|
+
run: |
|
|
95
|
+
echo 'If you are using a "manual" build mode for one or more of the' \
|
|
96
|
+
'languages you are analyzing, replace this with the commands to build' \
|
|
97
|
+
'your code, for example:'
|
|
98
|
+
echo ' make bootstrap'
|
|
99
|
+
echo ' make release'
|
|
100
|
+
exit 1
|
|
101
|
+
|
|
102
|
+
- name: Perform CodeQL Analysis
|
|
103
|
+
uses: github/codeql-action/analyze@v4
|
|
104
|
+
with:
|
|
105
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
name: Formal verification
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main" ]
|
|
8
|
+
merge_group:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: formal-verification
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
proof_components:
|
|
20
|
+
name: ${{ matrix.name }}
|
|
21
|
+
runs-on: ubuntu-24.04
|
|
22
|
+
timeout-minutes: ${{ matrix.timeout || 60 }}
|
|
23
|
+
strategy:
|
|
24
|
+
fail-fast: false
|
|
25
|
+
matrix:
|
|
26
|
+
include:
|
|
27
|
+
- name: Lean
|
|
28
|
+
target: check-generated-lean
|
|
29
|
+
timeout: 240
|
|
30
|
+
- name: ProVerif transcript fidelity
|
|
31
|
+
target: check-proverif-transcript-fidelity
|
|
32
|
+
- name: ProVerif CTX commitment
|
|
33
|
+
target: check-generated-proverif-aead-commitment
|
|
34
|
+
- name: ProVerif no-CTX control
|
|
35
|
+
target: check-generated-proverif-aead-no-commitment
|
|
36
|
+
- name: ProVerif baseline
|
|
37
|
+
target: check-generated-proverif-baseline
|
|
38
|
+
- name: ProVerif active classical
|
|
39
|
+
target: check-generated-proverif-active-classical
|
|
40
|
+
- name: ProVerif passive classical
|
|
41
|
+
target: check-generated-proverif-passive-classical
|
|
42
|
+
- name: ProVerif passive classical equivalence
|
|
43
|
+
target: check-generated-proverif-passive-classical-equivalence
|
|
44
|
+
- name: ProVerif passive quantum
|
|
45
|
+
target: check-generated-proverif-passive-quantum
|
|
46
|
+
- name: ProVerif passive quantum equivalence
|
|
47
|
+
target: check-generated-proverif-passive-quantum-equivalence
|
|
48
|
+
- name: ProVerif ML-KEM opacity
|
|
49
|
+
target: check-generated-proverif-quantum-mlkem-opacity
|
|
50
|
+
- name: ProVerif ML-KEM recovery control
|
|
51
|
+
target: check-generated-proverif-quantum-mlkem-recovery
|
|
52
|
+
- name: ProVerif ML-KEM binding control
|
|
53
|
+
target: check-generated-proverif-mlkem-reencapsulation-strong
|
|
54
|
+
- name: ProVerif weak KEM re-encapsulation control
|
|
55
|
+
target: check-generated-proverif-mlkem-reencapsulation-weak
|
|
56
|
+
- name: ProVerif HKDF prefix conformance
|
|
57
|
+
target: check-generated-proverif-hkdf-prefix-conformance
|
|
58
|
+
- name: ProVerif HKDF endpoint controls
|
|
59
|
+
target: check-generated-proverif-hkdf-endpoint-controls
|
|
60
|
+
- name: ProVerif distinct HKDF domains
|
|
61
|
+
target: check-generated-proverif-hkdf-domain-distinct
|
|
62
|
+
- name: ProVerif aliased HKDF-domain control
|
|
63
|
+
target: check-generated-proverif-hkdf-domain-alias
|
|
64
|
+
- name: ProVerif production key encodings
|
|
65
|
+
target: check-generated-proverif-public-key-confusion-strong
|
|
66
|
+
- name: ProVerif weakened key encodings
|
|
67
|
+
target: check-generated-proverif-public-key-confusion-weak
|
|
68
|
+
- name: ProVerif Phase 2 response binding
|
|
69
|
+
target: check-generated-proverif-phase2-response-binding
|
|
70
|
+
- name: ProVerif CBOR registration implicit metadata
|
|
71
|
+
target: check-generated-proverif-cbor-registration
|
|
72
|
+
- name: ProVerif assumed ML-DSA authentication and joint sessions
|
|
73
|
+
target: verify-proverif-mldsa-joint
|
|
74
|
+
- name: ProVerif weakened Phase 2 assigned ID binding
|
|
75
|
+
target: check-generated-proverif-phase2-assigned-id-weak
|
|
76
|
+
- name: ProVerif native Phase 2 X25519 encoding alias
|
|
77
|
+
target: check-generated-proverif-phase2-x25519-alias
|
|
78
|
+
- name: ProVerif complete registration admission boundary
|
|
79
|
+
target: check-generated-proverif-general-registration-admission
|
|
80
|
+
timeout: 240
|
|
81
|
+
- name: ProVerif arbitrary registration-set admission
|
|
82
|
+
target: check-generated-proverif-registration-set-admission
|
|
83
|
+
- name: ProVerif arbitrary registration response boundary
|
|
84
|
+
target: check-generated-proverif-registration-set-response
|
|
85
|
+
- name: ProVerif arbitrary Beacon registration admission
|
|
86
|
+
target: check-generated-proverif-registration-beacon-admission
|
|
87
|
+
- name: ProVerif later-sequence registration
|
|
88
|
+
target: check-generated-proverif-later-sequence-registration
|
|
89
|
+
- name: ProVerif main registration controls
|
|
90
|
+
target: check-generated-proverif-main-registration-controls
|
|
91
|
+
- name: ProVerif post-registration ratchet
|
|
92
|
+
target: check-generated-proverif-post-registration-ratchet
|
|
93
|
+
- name: ProVerif active quantum attack
|
|
94
|
+
target: check-generated-proverif-active-quantum
|
|
95
|
+
- name: ProVerif reachability
|
|
96
|
+
target: check-generated-proverif-reachability
|
|
97
|
+
- name: ProVerif compromise
|
|
98
|
+
target: check-generated-proverif-compromise
|
|
99
|
+
- name: ProVerif failed receive
|
|
100
|
+
target: check-generated-proverif-failed-receive
|
|
101
|
+
- name: ProVerif failed-receive reachability
|
|
102
|
+
target: check-generated-proverif-failed-receive-reachability
|
|
103
|
+
- name: ProVerif failed-receive compromise
|
|
104
|
+
target: check-generated-proverif-failed-receive-compromise
|
|
105
|
+
- name: ProVerif failed-receive compromise reachability
|
|
106
|
+
target: check-generated-proverif-failed-receive-compromise-reachability
|
|
107
|
+
- name: ProVerif live material origin and controls
|
|
108
|
+
target: verify-proverif-live-material
|
|
109
|
+
- name: ProVerif private application origin and disclosure controls
|
|
110
|
+
target: verify-proverif-live-private-application
|
|
111
|
+
- name: ProVerif arbitrary KEM authentication and controls
|
|
112
|
+
target: verify-proverif-kem-controller-auth
|
|
113
|
+
- name: ProVerif serial free-schedule group
|
|
114
|
+
target: verify-proverif-fs
|
|
115
|
+
timeout: 210
|
|
116
|
+
- name: ProVerif serial extension group
|
|
117
|
+
target: verify-proverif-extensions
|
|
118
|
+
timeout: 180
|
|
119
|
+
- name: Formal proof inventory
|
|
120
|
+
target: check-inventory
|
|
121
|
+
|
|
122
|
+
steps:
|
|
123
|
+
- name: Checkout repository
|
|
124
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
125
|
+
with:
|
|
126
|
+
persist-credentials: false
|
|
127
|
+
|
|
128
|
+
- name: Install pinned standard-library source toolchain
|
|
129
|
+
# check-inventory fingerprints the pinned nightly's rust-src component
|
|
130
|
+
# at ~/.rustup/toolchains/nightly-2026-08-18-x86_64-unknown-linux-gnu;
|
|
131
|
+
# the runner image points RUSTUP_HOME elsewhere, so force the exact
|
|
132
|
+
# location the source gates read. Run before Nix so a missing or
|
|
133
|
+
# pruned nightly fails fast without paying the proof-shell build.
|
|
134
|
+
if: matrix.target == 'check-inventory'
|
|
135
|
+
run: |
|
|
136
|
+
RUSTUP_HOME="$HOME/.rustup" \
|
|
137
|
+
rustup toolchain install nightly-2026-08-18 \
|
|
138
|
+
--profile minimal --component rust-src
|
|
139
|
+
|
|
140
|
+
- name: Install Nix
|
|
141
|
+
uses: DeterminateSystems/determinate-nix-action@92957199488000b908fdad19f63711000965d8f3 # v3.24.1
|
|
142
|
+
with:
|
|
143
|
+
kvm: false
|
|
144
|
+
|
|
145
|
+
- name: Use read-only proof-tool caches
|
|
146
|
+
uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17
|
|
147
|
+
with:
|
|
148
|
+
name: hax
|
|
149
|
+
skipPush: true
|
|
150
|
+
|
|
151
|
+
- name: Regenerate and verify formal proof artifacts
|
|
152
|
+
run: |
|
|
153
|
+
if [[ "${{ matrix.target }}" == check-inventory ]]; then
|
|
154
|
+
nix --extra-experimental-features 'nix-command flakes' \
|
|
155
|
+
develop --no-update-lock-file 'path:.#proofs' -c \
|
|
156
|
+
make -C beaconcrypt-core check-inventory
|
|
157
|
+
else
|
|
158
|
+
make -C beaconcrypt-core ${{ matrix.target }}
|
|
159
|
+
fi
|
|
160
|
+
|
|
161
|
+
proofs:
|
|
162
|
+
# Preserve this required-check context; the matrix above also verifies Lean.
|
|
163
|
+
name: Extract and verify formal proofs
|
|
164
|
+
if: ${{ always() }}
|
|
165
|
+
needs: proof_components
|
|
166
|
+
runs-on: ubuntu-24.04
|
|
167
|
+
timeout-minutes: 5
|
|
168
|
+
|
|
169
|
+
steps:
|
|
170
|
+
- name: Confirm every proof component passed
|
|
171
|
+
env:
|
|
172
|
+
PROOF_COMPONENTS_RESULT: ${{ needs.proof_components.result }}
|
|
173
|
+
run: test "$PROOF_COMPONENTS_RESULT" = success
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
name: Go Module
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
tags:
|
|
11
|
+
- "v[0-9]*.[0-9]*.[0-9]*"
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
env:
|
|
17
|
+
CARGO_TERM_COLOR: always
|
|
18
|
+
RUSTUP_TOOLCHAIN: 1.99.1
|
|
19
|
+
GOPROXY: https://proxy.golang.org
|
|
20
|
+
GONOSUMDB: ""
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
wasm:
|
|
24
|
+
uses: ./.github/workflows/wasm.yml
|
|
25
|
+
|
|
26
|
+
test:
|
|
27
|
+
name: Test Go module on ${{ matrix.os }}
|
|
28
|
+
needs: wasm
|
|
29
|
+
runs-on: ${{ matrix.os }}
|
|
30
|
+
permissions:
|
|
31
|
+
contents: read
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
os:
|
|
36
|
+
- ubuntu-24.04
|
|
37
|
+
- ubuntu-24.04-arm
|
|
38
|
+
- macos-latest
|
|
39
|
+
- macos-15-intel
|
|
40
|
+
- windows-latest
|
|
41
|
+
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v7
|
|
44
|
+
|
|
45
|
+
- uses: actions/download-artifact@v8
|
|
46
|
+
with:
|
|
47
|
+
name: wasm-generated
|
|
48
|
+
path: go/internal/wasm
|
|
49
|
+
|
|
50
|
+
- name: Set up Go
|
|
51
|
+
uses: actions/setup-go@v7
|
|
52
|
+
with:
|
|
53
|
+
go-version-file: go/go.mod
|
|
54
|
+
check-latest: true
|
|
55
|
+
|
|
56
|
+
- name: Set up MinGW UCRT64 on Windows
|
|
57
|
+
if: runner.os == 'Windows'
|
|
58
|
+
id: msys2
|
|
59
|
+
uses: msys2/setup-msys2@v2
|
|
60
|
+
with:
|
|
61
|
+
msystem: UCRT64
|
|
62
|
+
install: mingw-w64-ucrt-x86_64-gcc
|
|
63
|
+
|
|
64
|
+
- name: Add MinGW UCRT64 to PATH on Windows
|
|
65
|
+
if: runner.os == 'Windows'
|
|
66
|
+
run: '"${{ steps.msys2.outputs.msys2-location }}\ucrt64\bin" >> $env:GITHUB_PATH'
|
|
67
|
+
|
|
68
|
+
- name: Install Rust 1.99.1
|
|
69
|
+
run: rustup toolchain install 1.99.1 --profile minimal
|
|
70
|
+
|
|
71
|
+
- name: Build native library
|
|
72
|
+
if: runner.os != 'Windows'
|
|
73
|
+
run: cargo build --verbose -p beaconcrypt-ffi --release --features gobinds
|
|
74
|
+
|
|
75
|
+
- name: Build native library on Windows
|
|
76
|
+
if: runner.os == 'Windows'
|
|
77
|
+
env:
|
|
78
|
+
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER: gcc
|
|
79
|
+
run: |
|
|
80
|
+
rustup target add x86_64-pc-windows-gnu
|
|
81
|
+
cargo build --verbose -p beaconcrypt-ffi --release --target x86_64-pc-windows-gnu --features gobinds
|
|
82
|
+
|
|
83
|
+
- name: Test Go module
|
|
84
|
+
if: runner.os != 'Windows'
|
|
85
|
+
working-directory: go
|
|
86
|
+
env:
|
|
87
|
+
CGO_ENABLED: 1
|
|
88
|
+
run: |
|
|
89
|
+
CGO_ENABLED=1 go test -race ./...
|
|
90
|
+
CGO_ENABLED=0 go test ./...
|
|
91
|
+
CGO_ENABLED=1 go test -race -tags=beaconcrypt_wazero ./...
|
|
92
|
+
CGO_ENABLED=1 go vet ./...
|
|
93
|
+
CGO_ENABLED=0 go vet ./...
|
|
94
|
+
CGO_ENABLED=1 go vet -tags=beaconcrypt_wazero ./...
|
|
95
|
+
|
|
96
|
+
- name: Test Go module on Windows
|
|
97
|
+
if: runner.os == 'Windows'
|
|
98
|
+
working-directory: go
|
|
99
|
+
env:
|
|
100
|
+
CGO_ENABLED: 1
|
|
101
|
+
CC: gcc
|
|
102
|
+
shell: bash
|
|
103
|
+
run: |
|
|
104
|
+
CGO_ENABLED=1 go test -race ./...
|
|
105
|
+
CGO_ENABLED=0 go test ./...
|
|
106
|
+
CGO_ENABLED=1 go test -race -tags=beaconcrypt_wazero ./...
|
|
107
|
+
CGO_ENABLED=1 go vet ./...
|
|
108
|
+
CGO_ENABLED=0 go vet ./...
|
|
109
|
+
CGO_ENABLED=1 go vet -tags=beaconcrypt_wazero ./...
|
|
110
|
+
|
|
111
|
+
- name: Test native and Wasm interoperability through the public API
|
|
112
|
+
if: runner.os != 'Windows'
|
|
113
|
+
working-directory: go
|
|
114
|
+
run: |
|
|
115
|
+
mkdir -p ../.build
|
|
116
|
+
CGO_ENABLED=1 go build -o ../.build/interop-native ./testdata/interop
|
|
117
|
+
CGO_ENABLED=0 go build -tags=beaconcrypt_wazero -o ../.build/interop-wasm ./testdata/interop
|
|
118
|
+
python3 ../scripts/test-wasm-interop.py --native ../.build/interop-native --wasm ../.build/interop-wasm
|
|
119
|
+
|
|
120
|
+
cross-build:
|
|
121
|
+
name: Cross-build CGO-free consumers and release bundle
|
|
122
|
+
needs: wasm
|
|
123
|
+
runs-on: ubuntu-24.04
|
|
124
|
+
steps:
|
|
125
|
+
- uses: actions/checkout@v7
|
|
126
|
+
- uses: actions/setup-go@v7
|
|
127
|
+
with:
|
|
128
|
+
go-version-file: go/go.mod
|
|
129
|
+
- uses: actions/download-artifact@v8
|
|
130
|
+
with:
|
|
131
|
+
name: wasm-generated
|
|
132
|
+
path: go/internal/wasm
|
|
133
|
+
- name: Build the existing consumer unchanged
|
|
134
|
+
working-directory: examples/go
|
|
135
|
+
run: |
|
|
136
|
+
mkdir -p ../../target/wasm-consumers
|
|
137
|
+
for target in linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64; do
|
|
138
|
+
IFS=/ read -r go_os go_arch <<< "$target"
|
|
139
|
+
CGO_ENABLED=0 GOOS="$go_os" GOARCH="$go_arch" go build -trimpath \
|
|
140
|
+
-o "../../target/wasm-consumers/$go_os-$go_arch" ./main.go
|
|
141
|
+
done
|
|
142
|
+
- uses: actions/download-artifact@v8
|
|
143
|
+
with:
|
|
144
|
+
name: beaconcrypt-wasm-release
|
|
145
|
+
path: dist/wasm
|
|
146
|
+
- name: Test the released module, outside the Git checkout
|
|
147
|
+
run: |
|
|
148
|
+
cd dist/wasm
|
|
149
|
+
sha256sum -c SHA256SUMS
|
|
150
|
+
tar -xzf beaconcrypt-go-*-wasm.tar.gz
|
|
151
|
+
cd beaconcrypt-go-*/
|
|
152
|
+
CGO_ENABLED=0 go test ./...
|
|
153
|
+
CGO_ENABLED=1 go test -tags=beaconcrypt_wazero ./...
|
|
154
|
+
|
|
155
|
+
publish:
|
|
156
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
157
|
+
needs: [test, cross-build]
|
|
158
|
+
runs-on: ubuntu-24.04
|
|
159
|
+
permissions:
|
|
160
|
+
contents: write
|
|
161
|
+
|
|
162
|
+
steps:
|
|
163
|
+
- uses: actions/checkout@v7
|
|
164
|
+
with:
|
|
165
|
+
fetch-depth: 0
|
|
166
|
+
|
|
167
|
+
- name: Set up Go
|
|
168
|
+
uses: actions/setup-go@v7
|
|
169
|
+
with:
|
|
170
|
+
go-version-file: go/go.mod
|
|
171
|
+
check-latest: true
|
|
172
|
+
|
|
173
|
+
- name: Publish module to Go proxy
|
|
174
|
+
run: |
|
|
175
|
+
cd go
|
|
176
|
+
module_path="$(go list -m)"
|
|
177
|
+
go_version="${GITHUB_REF_NAME}"
|
|
178
|
+
# The module lives in the go/ subdirectory, so Go resolves it through a go/-prefixed tag.
|
|
179
|
+
go_tag="go/${go_version}"
|
|
180
|
+
|
|
181
|
+
git fetch origin "refs/tags/${go_tag}:refs/tags/${go_tag}" || true
|
|
182
|
+
if ! git rev-parse --verify --quiet "refs/tags/${go_tag}" >/dev/null; then
|
|
183
|
+
git tag "${go_tag}" "${GITHUB_SHA}"
|
|
184
|
+
git push origin "refs/tags/${go_tag}"
|
|
185
|
+
fi
|
|
186
|
+
|
|
187
|
+
tag_visible=false
|
|
188
|
+
for attempt in {1..30}; do
|
|
189
|
+
if git ls-remote --exit-code --tags origin "refs/tags/${go_tag}" >/dev/null; then
|
|
190
|
+
tag_visible=true
|
|
191
|
+
break
|
|
192
|
+
fi
|
|
193
|
+
sleep 10
|
|
194
|
+
done
|
|
195
|
+
if [ "${tag_visible}" != "true" ]; then
|
|
196
|
+
echo "Timed out waiting for ${go_tag} to become visible on origin" >&2
|
|
197
|
+
exit 1
|
|
198
|
+
fi
|
|
199
|
+
|
|
200
|
+
GOPROXY=direct go list -m "${module_path}@${go_version}"
|
|
201
|
+
|
|
202
|
+
for attempt in {1..30}; do
|
|
203
|
+
if go list -m "${module_path}@${go_version}"; then
|
|
204
|
+
exit 0
|
|
205
|
+
fi
|
|
206
|
+
sleep 10
|
|
207
|
+
done
|
|
208
|
+
|
|
209
|
+
go list -m "${module_path}@${go_version}"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Property tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "23 3 * * 1"
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
cases:
|
|
9
|
+
description: Successful cases per property and seed
|
|
10
|
+
type: number
|
|
11
|
+
default: 256
|
|
12
|
+
required: true
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
properties:
|
|
19
|
+
runs-on: ubuntu-24.04
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
seed_offset: [104729, 130363, 155921]
|
|
24
|
+
env:
|
|
25
|
+
PROPTEST_CASES: ${{ inputs.cases || '256' }}
|
|
26
|
+
CARGO_TERM_COLOR: always
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v7
|
|
29
|
+
with:
|
|
30
|
+
submodules: recursive
|
|
31
|
+
- name: Select reproducible campaign seed
|
|
32
|
+
env:
|
|
33
|
+
CAMPAIGN_RUN_ID: ${{ github.run_id }}
|
|
34
|
+
CAMPAIGN_SEED_OFFSET: ${{ matrix.seed_offset }}
|
|
35
|
+
run: |
|
|
36
|
+
campaign_seed=$((CAMPAIGN_RUN_ID + CAMPAIGN_SEED_OFFSET))
|
|
37
|
+
echo "PROPTEST_RNG_SEED=$campaign_seed" >> "$GITHUB_ENV"
|
|
38
|
+
echo "Property campaign seed: $campaign_seed"
|
|
39
|
+
- name: Codec properties
|
|
40
|
+
run: cargo test -p beaconcrypt-parse --test properties --locked
|
|
41
|
+
- name: Protocol and persistence properties
|
|
42
|
+
run: cargo test -p beaconcrypt --test ratchet_properties --test persistence_properties --test registration_properties --test cached_row_persistence --test row_rng --locked
|
|
43
|
+
- name: Preserve failure seeds
|
|
44
|
+
if: failure()
|
|
45
|
+
uses: actions/upload-artifact@v7
|
|
46
|
+
with:
|
|
47
|
+
name: property-regressions-${{ matrix.seed_offset }}
|
|
48
|
+
path: |
|
|
49
|
+
beaconcrypt/proptest-regressions/*.txt
|
|
50
|
+
beaconcrypt-parse/proptest-regressions/*.txt
|
|
51
|
+
if-no-files-found: ignore
|