hive-keychain/hive-keychain-extension

Peakd Community account handler (for posting keys)

Closed this issue · 6 comments

4Ykw commented

When trying to use peakd for example, to manage a community account (for the very rare common case of adding another admin for example), peakd asks for posting key, which is not populated on the hivekeychain slot. Hence the request fails.

Confused if the case is because there should be no posting key or because the fact the posting key is the same as the active key, the active key is not being interpreted as being the one that should be used for posting actions.

More clarification might be needed, but I can replicate the problem.

I'm a bit confused, why not entering your posting key on Keychain if you want to perform actions that need posting authority?

4Ykw commented

It does not allow it to do it right now (on the hive-keychain). It identifies it as being already inserted on the (in this particular case for community accounts) active key. This might be because the posting and active keys on the community accounts are the same or because there are no posting auths in communities accounts (I have not checked this) and hence the active key should be used for posting activities.

4Ykw commented

If you add a posting key as the same as the active key it will complain, saying that its not the posting key:

image

image

4Ykw commented

Ok, had a look at the code and this function might be the reason why it's failing and then jumping into the last else...
https://github.com/stoodkev/hive-keychain/blob/04454b8369c060fc5350fa154cc9b3442bba998f/js/popup/accounts.js

image

Well I have looked at that particular account on hiveblocks, and public posting and active keys are different, so the private keys should be different as well. You can test it by removing the active key and try to add the posting key again, if I´m right, it still wont work because your posting key is different.

4Ykw commented

Damn... you right. This is an ecency bug when creating the community (which was where I created this one at). Its providing the posting key as the same as the active key. Will reach them out. Thanks.