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 function to convert private key to public key and public key to auth key & address #16

Merged
merged 6 commits into from Apr 30, 2021

Conversation

tarvos21
Copy link
Collaborator

Use jssha's SHA3-256 algorithm

Refer to Starcoin Account

@@ -47,6 +47,7 @@
"is-whitespace-character": "^1.0.4",
"is-word-character": "^1.0.4",
"js-sha3": "^0.8.0",
"jssha": "^3.2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上面有 js-sha3 了。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

js-sha3没文档,试了下,转换不成功,就换 jssha 了,有文档,能输入 HEX

@tarvos21 tarvos21 changed the title Add function to convert public key to auth key Add function to convert private key to public key and public key to auth key & address Apr 30, 2021
@tarvos21 tarvos21 merged commit 41dfec6 into starcoinorg:master Apr 30, 2021
@tarvos21 tarvos21 deleted the pub2auth branch April 30, 2021 09:46
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