警告:该帝国为臆造,仅供娱乐。
WARNING: This empire is based on imagination and for entertainment only.
- 神圣:指性别平等权益神圣不可侵犯
- 跨性别:字面意思
- 帝国:基于区块链,人人皆可成为皇帝
- Holy -- The sacredness and inviolability of Gender-equity
- Trans. -- Transgender.
- Empire -- Everyone can be the Emperor by taking advantage of Blockchain.
原项目地址:https://github.com/saeziae/holy_trans_passport
- 首先你要有一个以太坊地址。
You MUST have your own Ethereum wallet. - 对于Windows用户,应先安装 Microsoft VC++ Build Tool 14.0 或以上。包括:MSBuild 工具,以及“使用 C++ 的桌面开发”。
For Windows, Microsoft VC++ Build Tool 14.0 or above MUST be installed. For my instance,included: Build tools core features; MSVC toolset C++ 2019 v142; Visual C++ 2019 Redistributable; Windows 10 SDK. - 安装以下依赖包:
pip install pillow opencv-python web3 numpy qrcode pdf417gen
Install the dependencies above. - 修改
info.json
内的个人信息。
Fill your personal info ininfo.json
:name
-- 全名 / Full namebirth
-- 生日 / Date of birthplace
-- 出生或重生地点 / Place of Birth or Rebirthpronouns
-- 偏好的代词 / Preferred pronouns, see the example abovehash
-- 以太坊钱包地址 / Address of Ethereum wallet
- 替换照片
photo.png
。建议尺寸:320 x 480。
Replacephoto.png
with others you prefer. Recommended size: 320 x 480. - 生成:
python generate_passport_and_pic.py info.json photo.png
Generate the passport using the command above. - 验证护照真伪:
python view_passport.py 编号.tgdpassport
,真的才会有信息。
If the check for the passport is needed, runpython view_passport.py <Passport_Number>.tgdpassport
.