Skip to content

Cannot get pubKeys form multisig (Bech32KeyOutput) #4338

Closed

Description

I can't get pubKeys from multisig by implement following to below.

  1. Create Info of Multisig:
    info := keys.NewMultiInfo(name, multikey)
    remark: I can do it. Prove it with fmt.Println
=== info ===
&{Wallet {1 [PubKeySecp256k1{033AF09F14E98A992519FF24B78E6C29F1A96B9CFBA127765F585605C748F061BE}]} 1 [{PubKeySecp256k1{033AF09F14E98A992519FF24B78E6C29F1A96B9CFBA127765F585605C748F061BE} 1}]}
  1. Import info to function of Cosmos-SDK
    ko, err := keys.Bech32KeyOutput(info)
    remark: I can do it. Prove it with fmt.Println
NAME:	TYPE:	ADDRESS:					PUBKEY:
Wallet	multi	cosmos15s8j38qm62g0rm23u87tulvq2anhregf3zclzk	cosmospub1ytql0csgqyfzd666axrjzqe67z03f6v2nyj3nleyk78xc203494ee7apyam97kzkqhr53urphccg97s3
  1. After that, I get ko.PubKeys which it don't have data of owner account.
>>>>>>>>>>>> Bug Get PubKeys >>>>>>>>>>>>>>
ko.PubKeys []
WEIGHT:	THRESHOLD:	ADDRESS:					PUBKEY:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Below, I attach code.
Code:
Screen Shot 2562-05-14 at 18 14 30

Result:
Screen Shot 2562-05-14 at 18 14 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions