Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expect to add ed25519 digital signature algorithm #9

Closed
xflcx1991 opened this issue Dec 1, 2022 · 6 comments
Closed

Expect to add ed25519 digital signature algorithm #9

xflcx1991 opened this issue Dec 1, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@xflcx1991
Copy link

Feature Request

Is your feature request related to a problem? Please describe:

在需要高性能高安全的需求时,ed25519算法是一个很好的选择
Describe the feature you'd like:

实现Go 1.13起(https://pkg.go.dev/golang.org/x/crypto/ed25519),标准库自带的ed25519功能, crypto/ed25519模块。
Describe alternatives you've considered:

暂无
Teachability, Documentation, Adoption, Migration Strategy:

@Issues-translate-bot Issues-translate-bot changed the title 期待加上 ed25519 数字签名算法 Expect to add ed25519 digital signature algorithm Dec 2, 2022
@gouguoyin
Copy link
Collaborator

Ed25519 signature and verification have been supported since version 0.2.1

@gouguoyin gouguoyin added the enhancement New feature or request label Dec 10, 2022
@xflcx1991
Copy link
Author

0.2.1 有了ed25519
但是readme ed25519示例代码运行不了

  1. 没有dongle.Sign.FromString("hello world").Ed25519(privateKey, dongle.Raw) 方法,应该是 ByEd25519
  2. dongle.Raw 是啥,哪里定义的?
    @gouguoyin

@xflcx1991
Copy link
Author

xflcx1991 commented Dec 12, 2022

// 编码模式常量
const (
RAW encodingMode = "raw"
HEX encodingMode = "hex"
BASE64 encodingMode = "base64"
)

原来是dongle.RAW

@Issues-translate-bot
Copy link
Collaborator

The issue body's language is not English, translate it automatically, please use English next time. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


// encoding mode constant
const (
RAW encodingMode = "raw"
HEX encodingMode = "hex"
BASE64 encodingMode = "base64"
)
It turned out to be a dongle.RAW

@gouguoyin
Copy link
Collaborator

Thanks, the next version will be fixed.

@gouguoyin
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants