-
Notifications
You must be signed in to change notification settings - Fork 1.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
core: use loop.Keystore, support arbitrarily prefixed Cosmos addresses #10416
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
working on fixing the SigScanner check.. |
3adf76a
to
2a416d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me upto the question about a mutex.
out of curiousity - how burdensome was it to understand what to write? i'm excited that you could figure it out and i'm wondering if we could have made it easier to understand. based on the code, i'm guessing that starknet was a good example
ce1948b
to
a8b1f78
Compare
thanks for the quick reviews! waiting on the fix for the sigscanner check :)
it wasn't too bad, i spent most of the time thinking on what making it as basic as possible (priv key signing a blob, instead of tx-scoped) seemed to work out, and even if the loop.Keystore cound be bech32-prefix-aware and support other metadata fields when signing, it would have required other changes (eg. what should Accounts() return?) there's still the question of how chain operators would know the addresses on different chains, since the key controller/operator ui/keystore.Cosmos only shows a non-prefixed pubkey, but i think we can address that at a later point. |
06e9f3f
to
6493651
Compare
1990100
to
9b6b6a0
Compare
pubKey, err := a.adapter.PubKey(a.account) | ||
if err != nil { | ||
// return an empty pubkey if it's not found. | ||
return &secp256k1.PubKey{Key: []byte{}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the reasoning behind empty pubkey vs panicking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the reasoning was that we don't want the node/process to crash - for example, if account
was mistyped. addresses can be specified via TOML for transmitter address, although i didn't bother to trace the code path to see if user input could actually end up here.
9b6b6a0
to
b22fb06
Compare
7eef30e
to
df527fd
Compare
df527fd
to
f25affc
Compare
Co-authored-by: Jordan Krage <[email protected]>
^ keeping the branch restored so it can be used for tests on chainlink-cosmos |
BCI-1740