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

Add support for Ed25519 API keys #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dcentelles
Copy link

This PR introduces support for signing with Ed25519 private keys, as recommended by Binance. It allows the key to be provided in various formats: PEM, base64, and hex.

Supported Key Formats (examples):

  • PEM: client.NewGetAccountService().Do(context.Background(), bc.ReqOptWithKeyType(bc.KeyTypeEd25519PEM))
  • B64: client.NewGetAccountService().Do(context.Background(), bc.ReqOptWithKeyType(bc.KeyTypeEd25519Base64))
  • HEX: client.NewGetAccountService().Do(context.Background(), bc.ReqOptWithKeyType(bc.KeyTypeEd25519Hex))

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

Successfully merging this pull request may close these issues.

1 participant