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

support personal sign #30

Merged
merged 1 commit into from Jul 7, 2021
Merged

support personal sign #30

merged 1 commit into from Jul 7, 2021

Conversation

wk3368
Copy link
Collaborator

@wk3368 wk3368 commented Jul 6, 2021

we need to integrate publicKey with message into TransactionAuthenticator for sign.
the benifit is that we can later decode and get the signed address from the publicKey.

  1. add 2 functions in utils/sign: encodeTransactionAuthenticator / decodeTransactionAuthenticator
  2. add 2 test cases:
    yarn test:unit src/utils/sign.spec.ts --testNamePattern="encode"
    yarn test:unit src/utils/sign.spec.ts --testNamePattern="sign"

@wk3368 wk3368 merged commit cf979ac into master Jul 7, 2021
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.

None yet

2 participants