implementing-digital-signatures-with-ed25519
Ed25519 是一种使用 Edwards 曲线 Curve25519 的高性能数字签名算法。它以 64 字节签名和 32 字节密钥提供 128 位安全性,相比 RSA 和 ECDSA 具有显著优势,包括确定性签名(无需随机 nonce)、抗侧信道攻击以及快速验证。
Best use case
implementing-digital-signatures-with-ed25519 is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Ed25519 是一种使用 Edwards 曲线 Curve25519 的高性能数字签名算法。它以 64 字节签名和 32 字节密钥提供 128 位安全性,相比 RSA 和 ECDSA 具有显著优势,包括确定性签名(无需随机 nonce)、抗侧信道攻击以及快速验证。
Teams using implementing-digital-signatures-with-ed25519 should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/implementing-digital-signatures-with-ed25519/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How implementing-digital-signatures-with-ed25519 Compares
| Feature / Agent | implementing-digital-signatures-with-ed25519 | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Ed25519 是一种使用 Edwards 曲线 Curve25519 的高性能数字签名算法。它以 64 字节签名和 32 字节密钥提供 128 位安全性,相比 RSA 和 ECDSA 具有显著优势,包括确定性签名(无需随机 nonce)、抗侧信道攻击以及快速验证。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 使用 Ed25519 实现数字签名 ## 概述 Ed25519 是一种使用 Edwards 曲线 Curve25519 的高性能数字签名(digital signature)算法。它以 64 字节签名和 32 字节密钥提供 128 位安全性,相比 RSA 和 ECDSA 具有显著优势,包括确定性签名(无需随机 nonce)、抗侧信道攻击以及快速验证。本技能涵盖为文档签名、代码签名和 API 认证实现 Ed25519。 ## 目标 - 生成用于签名的 Ed25519 密钥对 - 使用 Ed25519 对消息和文件签名 - 对照公钥验证签名 - 实现多签名验证 - 构建简单的代码签名系统 - 比较 Ed25519 与 RSA 和 ECDSA 的性能 ## 核心概念 ### Ed25519 vs RSA vs ECDSA | 属性 | Ed25519 | RSA-3072 | ECDSA P-256 | |------|---------|----------|-------------| | 安全性 | 128 位 | 128 位 | 128 位 | | 公钥大小 | 32 字节 | 384 字节 | 64 字节 | | 签名大小 | 64 字节 | 384 字节 | 64 字节 | | 密钥生成 | ~50 us | ~100 ms | ~1 ms | | 签名 | ~70 us | ~5 ms | ~200 us | | 验证 | ~200 us | ~200 us | ~500 us | | 确定性 | 是 | 否 (PSS) | 否(除非 RFC 6979)| ### 关键特性 - **确定性(Deterministic)**:相同消息 + 密钥始终产生相同签名 - **抗碰撞(Collision-resistant)**:无需单独的哈希函数 - **抗侧信道(Side-channel resistant)**:恒定时间实现 - **小密钥**:公钥和私钥各 32 字节 ## 安全注意事项 - Ed25519 不支持从签名中恢复密钥 - 验证完整消息,而非哈希值(Ed25519 内部进行哈希) - 使用前必须验证公钥(检查低阶点) - 私钥在静止状态下应加密存储 - Ed25519 尚未获批用于所有 NIST 用例(联邦场景首选 Ed448) ## 验证标准 - [ ] 密钥对生成产生有效的 Ed25519 密钥 - [ ] 对有效消息的签名验证成功 - [ ] 对篡改消息的签名验证失败 - [ ] 对错误公钥的签名验证失败 - [ ] 确定性:相同输入产生相同签名 - [ ] 文件签名和验证工作正常 - [ ] 性能达到或超过 RSA-3072
Related Skills
implementing-zero-trust-with-hashicorp-boundary
使用 HashiCorp Boundary 实现具备动态凭据代理、会话录制和 Vault 集成的身份感知零信任基础设施访问管理。
implementing-zero-trust-with-beyondcorp
使用身份感知代理(IAP,Identity-Aware Proxy)、上下文感知访问策略、设备信任验证和 Access Context Manager,部署 Google BeyondCorp Enterprise 零信任访问控制,对 GCP 资源和内部应用强制执行基于身份和安全态势的访问。
implementing-zero-trust-network-access
通过配置身份感知代理、微分段、基于条件访问策略的持续验证,以及在 AWS、Azure 和 GCP 环境中以 BeyondCorp 风格的架构替代传统 VPN 访问,在云环境中实施零信任网络访问(ZTNA)。
implementing-zero-trust-network-access-with-zscaler
使用 Zscaler 实施零信任网络访问(Zero Trust Network Access,ZTNA),通过 Zscaler Private Access(ZPA)配置应用分段、访问策略和连接器,替代传统 VPN 架构
implementing-zero-trust-in-cloud
本技能指导组织按照 NIST SP 800-207 和 Google BeyondCorp 原则在云环境中实施零信任(Zero Trust)架构,涵盖以身份为中心的访问控制、微分段(Micro-Segmentation)、持续验证、设备信任评估,以及部署身份感知代理(Identity-Aware Proxy)以消除 AWS、Azure 和 GCP 环境中的隐式网络信任。
implementing-zero-trust-for-saas-applications
使用 CASB、SSPM、条件访问策略、OAuth 应用治理和会话控制,为 SaaS 应用实施零信任访问控制, 对云托管服务强制执行身份验证、设备合规性检查和数据保护。
implementing-zero-trust-dns-with-nextdns
将 NextDNS 实施为零信任 DNS 过滤层,提供加密解析、威胁情报阻断、隐私保护,以及跨所有端点的组织策略执行。
implementing-zero-standing-privilege-with-cyberark
部署 CyberArk Secure Cloud Access,通过基于时间、权限和审批控制的即时访问,在混合云和多云环境中消除常设权限。
implementing-zero-knowledge-proof-for-authentication
零知识证明(ZKP)允许证明者在不泄露秘密本身的情况下证明对某个秘密(如密码或私钥)的了解。本技能实现 Schnorr 身份识别协议和使用离散对数问题的简化 ZKPP,使服务器永远不需要获取用户密码即可完成认证。
implementing-web-application-logging-with-modsecurity
配置带有 OWASP 核心规则集(CRS)的 ModSecurity WAF,实现 Web 应用程序日志记录, 调整规则以减少误报,分析审计日志进行攻击检测,并为应用程序特定威胁实现自定义 SecRules。 分析师配置 SecRuleEngine、SecAuditEngine 和 CRS 偏执级别,以在安全覆盖范围和运营稳定性之间取得平衡。 适用于涉及 WAF 配置、ModSecurity 规则调整、Web 应用审计日志或 CRS 部署的场景。
implementing-vulnerability-sla-breach-alerting
为漏洞修复 SLA 违规构建自动化告警,包含基于严重程度的时间线、升级工作流和合规性报告仪表板。
implementing-vulnerability-remediation-sla
漏洞修复 SLA(服务级别协议)根据严重程度、资产重要性和漏洞利用可用性定义修补或缓解已识别漏洞的强制时限。有效的 SLA 计划推动责任落实、确保一致的修复时间线,并为漏洞管理成熟度提供可衡量的 KPI。