beaconcrypt 0.3.5__tar.gz → 0.3.6__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.
Files changed (44) hide show
  1. beaconcrypt-0.3.6/.github/workflows/codeql.yml +105 -0
  2. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/.github/workflows/go.yml +3 -0
  3. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/.github/workflows/python.yml +24 -3
  4. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/Cargo.lock +1 -1
  5. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/Cargo.toml +1 -1
  6. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/PKG-INFO +1 -1
  7. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/README.md +2 -2
  8. beaconcrypt-0.3.6/beaconcrypt_test.go +690 -0
  9. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/doc/protocol.md +4 -4
  10. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/pyproject.toml +6 -0
  11. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/beacon.rs +4 -4
  12. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/lib.rs +17 -30
  13. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/pqxdh.rs +27 -18
  14. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/server.rs +4 -4
  15. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/shared.rs +17 -9
  16. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/tests/beacon.rs +4 -4
  17. beaconcrypt-0.3.6/tests/protocol.rs +360 -0
  18. beaconcrypt-0.3.6/tests/test_encryption.py +298 -0
  19. beaconcrypt-0.3.6/tests/test_registration.py +71 -0
  20. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/uv.lock +1 -1
  21. beaconcrypt-0.3.5/beaconcrypt_test.go +0 -366
  22. beaconcrypt-0.3.5/tests/protocol.rs +0 -119
  23. beaconcrypt-0.3.5/tests/test_encryption.py +0 -168
  24. beaconcrypt-0.3.5/tests/test_registration.py +0 -38
  25. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/.cargo/config.toml +0 -0
  26. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/.github/workflows/release.yml +0 -0
  27. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/.github/workflows/rust.yml +0 -0
  28. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/.gitignore +0 -0
  29. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/LICENSE +0 -0
  30. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/beaconcrypt.go +0 -0
  31. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/bindings.h +0 -0
  32. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/build.rs +0 -0
  33. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/clippy.toml +0 -0
  34. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/doc/rationale.md +0 -0
  35. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/doc/threat_model.md +0 -0
  36. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/go.mod +0 -0
  37. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/rustfmt.toml +0 -0
  38. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/cnsa2.rs +0 -0
  39. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/error.rs +0 -0
  40. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/schema/cryptoframe.capnp +0 -0
  41. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/schema/phase1.capnp +0 -0
  42. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/schema/phase2.capnp +0 -0
  43. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/src/schema/protogram.capnp +0 -0
  44. {beaconcrypt-0.3.5 → beaconcrypt-0.3.6}/tests/server.rs +0 -0
@@ -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-latest' }}
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}}"
@@ -2,6 +2,8 @@ name: Go Module
2
2
 
3
3
  on:
4
4
  push:
5
+ branches:
6
+ - main
5
7
  tags:
6
8
  - "[0-9]*.[0-9]*.[0-9]*"
7
9
 
@@ -83,6 +85,7 @@ jobs:
83
85
  run: go test ./...
84
86
 
85
87
  publish:
88
+ if: startsWith(github.ref, 'refs/tags/')
86
89
  needs: test
87
90
  runs-on: ubuntu-latest
88
91
  permissions:
@@ -10,6 +10,8 @@ name: Upload Python Package
10
10
 
11
11
  on:
12
12
  push:
13
+ branches:
14
+ - main
13
15
  tags:
14
16
  - "[0-9]*.[0-9]*.[0-9]*"
15
17
 
@@ -17,7 +19,7 @@ permissions:
17
19
  contents: read
18
20
 
19
21
  jobs:
20
- sdist:
22
+ test:
21
23
  runs-on: ubuntu-latest
22
24
 
23
25
  steps:
@@ -33,8 +35,24 @@ jobs:
33
35
 
34
36
  - name: Run Python tests
35
37
  run: |
36
- uv run --group dev maturin develop --bindings pyo3 --features pybinds
37
- uv run --group dev pytest tests
38
+ uv run maturin develop --uv
39
+ uv run pytest tests
40
+
41
+ sdist:
42
+ if: startsWith(github.ref, 'refs/tags/')
43
+ needs: test
44
+ runs-on: ubuntu-latest
45
+
46
+ steps:
47
+ - uses: actions/checkout@v7
48
+
49
+ - name: Install uv
50
+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
51
+ - name: Set up Python
52
+ run: uv python install 3.14
53
+ - name: Install cap'n proto
54
+ run: |
55
+ sudo apt install capnproto
38
56
 
39
57
  - name: Build source distribution
40
58
  run: uvx maturin sdist --out dist
@@ -46,6 +64,8 @@ jobs:
46
64
  path: dist/
47
65
 
48
66
  wheels:
67
+ if: startsWith(github.ref, 'refs/tags/')
68
+ needs: test
49
69
  name: Build wheels on ${{ matrix.os }}
50
70
  runs-on: ${{ matrix.os }}
51
71
  strategy:
@@ -74,6 +94,7 @@ jobs:
74
94
  path: dist/
75
95
 
76
96
  pypi-publish:
97
+ if: startsWith(github.ref, 'refs/tags/')
77
98
  runs-on: ubuntu-latest
78
99
  needs:
79
100
  - sdist
@@ -84,7 +84,7 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
84
84
 
85
85
  [[package]]
86
86
  name = "beaconcrypt"
87
- version = "0.3.5"
87
+ version = "0.3.6"
88
88
  dependencies = [
89
89
  "capnp",
90
90
  "capnpc",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "beaconcrypt"
3
- version = "0.3.5"
3
+ version = "0.3.6"
4
4
  edition = "2024"
5
5
  license-file = "LICENSE"
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beaconcrypt
3
- Version: 0.3.5
3
+ Version: 0.3.6
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -60,8 +60,8 @@ Build and run all tests:
60
60
  cargo test
61
61
  cargo build --target x86_64-pc-windows-gnu
62
62
  go test ./...
63
- uv run maturin build --features pybinds --uv
64
- uv run --no-sync pytest tests
63
+ uv run maturin develop --uv
64
+ uv run pytest tests
65
65
  ```
66
66
 
67
67
  ## Profiles