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 sign/verify api #627

Merged
merged 1 commit into from
Jan 11, 2021
Merged

add sign/verify api #627

merged 1 commit into from
Jan 11, 2021

Conversation

kenshyx
Copy link
Member

@kenshyx kenshyx commented Jan 8, 2021

Description

Added signData and verifySignature to auth api, method signatures:

  • async signData (data: object | string): Promise<{serializedData: Uint8Array, signature: Uint8Array, pubKey: string}>
  • async verifySignature(args: { pubKey: string; data: Uint8Array | string | object; signature: Uint8Array;}): Promise<boolean>

Issues that will be closed

Testing

Checklist

  • I have read the README document
  • I have read the CONTRIBUTING document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • My commit message follows Conventional Commit Guideline

@github-actions github-actions bot added the sdk label Jan 8, 2021
@kenshyx kenshyx self-assigned this Jan 8, 2021
@kenshyx kenshyx merged commit 8be2ccc into master Jan 11, 2021
@kenshyx kenshyx deleted the app-sig1 branch January 11, 2021 09:11
kenshyx added a commit that referenced this pull request Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants