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

(PVT_K1 )Unable to verify, output public key does not match #181

Open
zhitunAI opened this issue Jun 30, 2022 · 5 comments
Open

(PVT_K1 )Unable to verify, output public key does not match #181

zhitunAI opened this issue Jun 30, 2022 · 5 comments

Comments

@zhitunAI
Copy link

see https://wax.bloks.io/wallet/utilities/keys generate PK
PUB_K1_62P38aQ2bHygD6EMu2ixxSKM1F3odyG4vKmaMft9NkMezVkNnK
PVT_K1_2i6s2S8cxJw33zFuF3keAfUJjKSUJ53qVH7ac4veCuPVCpUSp

@maoueh
Copy link
Contributor

maoueh commented Jun 30, 2022

Can you check with develop branch of the repository?

go get github.com/eoscanada/eos-go@develop

A PR was merged recently (#177) to add support for PVT_K1 keys so pretty sure it's going to solve your issue.

@zhitunAI
Copy link
Author

=== RUN Test_NewPrivateKey
--- FAIL: Test_NewPrivateKey (0.01s)
=== RUN Test_NewPrivateKey/K1
62P38aQ2bHygD6EMu2ixxSKM1F3odyG4vKmaMft9NkMezVkNnK
5HqzgYUXD5XJC3SGJ6gwqgunguZEecA9meZ4LkepAX4YZ5cFRdN
pubkey_test.go:31:
Error Trace: G:\go\chain\src\pubkey_test.go:31
Error: Not equal:
expected: "62P38aQ2bHygD6EMu2ixxSKM1F3odyG4vKmaMft9NkMezVkNnK"
actual : "5HqzgYUXD5XJC3SGJ6gwqgunguZEecA9meZ4LkepAX4YZ5cFRdN"

    	            	Diff:
    	            	--- Expected
    	            	+++ Actual
    	            	@@ -1 +1 @@
    	            	-62P38aQ2bHygD6EMu2ixxSKM1F3odyG4vKmaMft9NkMezVkNnK
    	            	+5HqzgYUXD5XJC3SGJ6gwqgunguZEecA9meZ4LkepAX4YZ5cFRdN
    	Test:       	Test_NewPrivateKey/K1
--- FAIL: Test_NewPrivateKey/K1 (0.01s)

预期:62P38aQ2bHygD6EMu2ixxSKM1F3odyG4vKmaMft9NkMezVkNnK
实际:5HqzgYUXD5XJC3SGJ6gwqgunguZEecA9meZ4LkepAX4YZ5cFRdN

@zhitunAI
Copy link
Author

Revised content updated

@zhitunAI
Copy link
Author

PVT_K1_2i6s2S8cxJw33zFuF3keAfUJjKSUJ53qVH7ac4veCuPVCpUSp
The number of bytes is different from the privkey_test.go
PVT_K1_9FN3K4JhzaMsw2Duzr1ijHzVecHtqg1QG4ZCX9udh69Z7QGTk

@zhitunAI
Copy link
Author

@maoueh

https://www.eosgeneratekey.com/
The key can be verified through this website

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

No branches or pull requests

2 participants