-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add changelog * add workflow * use vcpkg as submodule * fix ut
- Loading branch information
1 parent
d95e5f3
commit b21a3fe
Showing
19 changed files
with
450 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 120 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
# Label to use when marking an issue as stale | ||
staleLabel: wontfix | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: WeDPR-Component ci(cpp) | ||
on: | ||
push: | ||
paths-ignore: | ||
- "docs/**" | ||
- "Changelog.md" | ||
- "README.md" | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
- "Changelog.md" | ||
- "README.md" | ||
release: | ||
types: [published, push] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-12, ubuntu-20.04] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly-2022-07-28 | ||
override: true | ||
- name: Prepare vcpkg | ||
if: runner.os != 'Windows' | ||
uses: friendlyanon/setup-vcpkg@v1 | ||
with: { committish: 51b14cd4e1230dd51c11ffeff6f7d53c61cc5297 } | ||
- uses: actions/cache@v2 | ||
id: deps_cache | ||
with: | ||
path: | | ||
deps/ | ||
c:/vcpkg | ||
!c:/vcpkg/.git | ||
!c:/vcpkg/buildtrees | ||
!c:/vcpkg/packages | ||
!c:/vcpkg/downloads | ||
key: build-${{ matrix.os }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | ||
restore-keys: | | ||
build-${{ matrix.os }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | ||
build-${{ matrix.os }}-${{ github.base_ref }}- | ||
build-${{ matrix.os }}- | ||
- name: Build for linux | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt install -y lcov ccache wget libgmp-dev python3-dev | ||
export GCC='gcc-10' | ||
export CXX='g++-10' | ||
bash cpp/tools/install_depends.sh -o ubuntu | ||
mkdir -p cpp/build && cd cpp/build && cmake -DTESTS=ON -DCOVERAGE=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../ | ||
make -j3 | ||
- name: Build for macos | ||
if: runner.os == 'macOS' | ||
run: | | ||
bash cpp/tools/install_depends.sh -o macos | ||
mkdir -p cpp/build && cd cpp/build && cmake -DTESTS=ON -DCOVERAGE=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../ | ||
make -j3 | ||
- name: Test | ||
if: runner.os != 'Windows' | ||
run: | | ||
cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE ctest | ||
make cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "cpp/vcpkg"] | ||
path = cpp/vcpkg | ||
url = https://github.com/microsoft/vcpkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### 1.0.0-rc1 | ||
(2024-08-21) | ||
|
||
**新增** | ||
|
||
#### 隐私计算组件 | ||
|
||
- **PSI**: 实现多种类型隐私求交集算法,包括CM2020, RA2018, ECDH-PSI, ECDH-Multi-PSI等 | ||
- **MPC**: 安全多方计算相关组件 | ||
- **MPCSQL**: 基于安全多方计算协议,支持联合分析查询任务 | ||
- **PIR**: 匿踪查询组件 | ||
|
||
#### 隐私计算互联互通 | ||
|
||
- ECDH PSI算法与隐语互联互通 | ||
|
||
#### 隐私建模组件 | ||
|
||
- 2+方的多方联合XGB组件(训练 + 离线预测) | ||
- 2+方多方特征工程组件(特征分箱,WOE/IV计算等) | ||
- 预处理组件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# WeDPR-Component | ||
# WeDPR | ||
|
||
![](https://wedpr-lab.readthedocs.io/zh_CN/latest/_static/images/wedpr_logo.png) | ||
|
||
|
||
[![CodeFactor](https://www.codefactor.io/repository/github/webankblockchain/wedpr-component/badge?s=a4c3fb6ffd39e7618378fe13b6bd06c5846cc103)](https://www.codefactor.io/repository/github/webankblockchain/wedpr-component) | ||
[![contributors](https://img.shields.io/github/contributors/WeBankBlockchain/WeDPR)](https://github.com/WeBankBlockchain/WeDPR-Component/graphs/contributors) | ||
[![GitHub activity](https://img.shields.io/github/commit-activity/m/WeBankBlockchain/WeDPR-Component)](https://github.com/WeBankBlockchain/WeDPR-Component/pulse) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) | ||
|
||
微众银行多方大数据隐私计算平台[WeDPR](https://github.com/WeBankBlockchain/WeDPR)核心组件库,包括: | ||
|
||
- 丰富的隐私计算算法组件,支持隐私求交集、匿踪查询、多方联合分析(隐私SQL)、数据预处理、隐私建模和预测等能力,以满足多样化的业务场景 | ||
- 统一网关:稳定的跨机构网络通信组件,支持基于Rip协议的路由转发协议 | ||
|
||
|
||
## 技术文档 | ||
|
||
- [文档](https://wedpr-lab.readthedocs.io/zh-cn/latest/) | ||
- [代码](https://github.com/WeBankBlockchain/WeDPR-Component) | ||
|
||
|
||
## License | ||
|
||
WeDPR-Component的开源协议为Apache License 2.0, 详情参见[LICENSE](LICENSE)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
find_package(Boost COMPONENTS log filesystem chrono thread serialization iostreams system) | ||
find_package(Boost COMPONENTS log filesystem chrono thread serialization iostreams system ) | ||
find_package(ZLIB REQUIRED) | ||
find_package(bcos-utilities REQUIRED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
project(ppc-mpc VERSION ${VERSION}) | ||
add_subdirectory(src) | ||
|
||
if (TESTS) | ||
enable_testing() | ||
set(CTEST_OUTPUT_ON_FAILURE TRUE) | ||
add_subdirectory(tests) | ||
endif() | ||
#if (TESTS) | ||
# enable_testing() | ||
# set(CTEST_OUTPUT_ON_FAILURE TRUE) | ||
# add_subdirectory(tests) | ||
#endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.