-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
keyring API doesn't work as expected #11368
Comments
I was able to reproduce it, it is not a panic related to the List() method but rather when doing
|
Some details that I've found: type Record struct {
// name represents a name of Record
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// pub_key represents a public key in any format
PubKey *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
// Record contains one of the following items
//
// Types that are valid to be assigned to Item:
// *Record_Local_
// *Record_Ledger_
// *Record_Multi_
// *Record_Offline_
Item isRecord_Item `protobuf_oneof:"item"`
} the failing field here is the This, I think, is due to a bug in
the code ends up calling: which handles the |
@aaronc @julienrbrt we should try to fix this in the fork of gogoproto (cosmos/gogoproto) |
Summary of Bug
keyring List() method call returns a panic:
This may indicate that under some circumstances that the keyring New function fails to create or use the keyring correctly but does not return an error, so you can't tell that something didn't happen as expected (note my explicit tests for err != nil, and failure anyway). Both using an existing keystore, and trying to create a new keystore and then list the empty keys both fail.
Version
25feb23
Steps to Reproduce
make build && make install
For Admin Use
The text was updated successfully, but these errors were encountered: