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

sign should accept string as hex string or sg_encoded string, not as a raw data #1905

Open
davidyuk opened this issue Oct 18, 2023 · 0 comments
Labels
breaking changes bug Something isn't working
Milestone

Comments

@davidyuk
Copy link
Member

export function sign(data: string | Uint8Array, privateKey: string | Uint8Array): Uint8Array {
return nacl.sign.detached(Buffer.from(data), Buffer.from(privateKey));
}

@davidyuk davidyuk added bug Something isn't working breaking changes labels Oct 18, 2023
@davidyuk davidyuk added this to the next milestone Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant