TenSEAL 开源项目教程

TenSEAL 开源项目教程

TenSEALA library for doing homomorphic encryption operations on tensors项目地址:https://gitcode.com/gh_mirrors/te/TenSEAL

1. 项目的目录结构及介绍

TenSEAL 是一个用于同态加密操作的 Python 库。以下是其主要目录结构的介绍:

  • /tenseal/: 包含 TenSEAL 库的核心实现代码。
    • /tenseal/encoders/: 包含各种编码器的实现。
    • /tenseal/context/: 包含上下文管理的实现。
    • /tenseal/sealapi/: 包含与 Microsoft SEAL 库的接口。
  • /examples/: 包含使用 TenSEAL 的示例代码。
  • /tests/: 包含测试代码,用于验证库的正确性。
  • /docs/: 包含项目的文档。
  • /scripts/: 包含一些辅助脚本。

2. 项目的启动文件介绍

TenSEAL 的启动文件主要是 setup.py,它负责项目的安装和配置。以下是 setup.py 的主要内容:

from setuptools import setup, find_packages

setup(
    name="TenSEAL",
    version="0.3.0",
    packages=find_packages(),
    install_requires=[
        "numpy",
        "pybind11",
        "seal",
    ],
    author="OpenMined",
    author_email="info@openmined.org",
    description="A library for homomorphic encryption operations on tensors",
    long_description=open("README.md").read(),
    long_description_content_type="text/markdown",
    url="https://github.com/OpenMined/TenSEAL",
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
    ],
    python_requires='>=3.6',
)

3. 项目的配置文件介绍

TenSEAL 的配置文件主要是 pyproject.toml,它定义了项目的构建系统和依赖项。以下是 pyproject.toml 的主要内容:

[build-system]
requires = ["setuptools", "wheel", "pybind11"]
build-backend = "setuptools.build_meta"

[project]
name = "TenSEAL"
version = "0.3.0"
description = "A library for homomorphic encryption operations on tensors"
authors = [
    { name="OpenMined", email="info@openmined.org" }
]
dependencies = [
    "numpy",
    "pybind11",
    "seal"
]

这些配置文件确保了 TenSEAL 库的正确安装和运行。

TenSEALA library for doing homomorphic encryption operations on tensors项目地址:https://gitcode.com/gh_mirrors/te/TenSEAL

  • 5
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

明会泽Irene

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值