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

fix multisignature spec file error #19

Merged
merged 9 commits into from
Apr 18, 2022
Merged

fix multisignature spec file error #19

merged 9 commits into from
Apr 18, 2022

Conversation

loin3
Copy link
Contributor

@loin3 loin3 commented Apr 13, 2022

Multisignature is still encoded through Amino and prefix is added when encoded to Amino pubkey, but the prefix was not modified for ostracon, so multisig pubkey was not encoded correctly.
Accordingly multisig address was not generated correctly.

The problem was solved by modifying the prefix to match the ostracon.

Multisignature is still encoded through Amino and prefix is added when encoded to Amino pubkey, but the prefix was not modified for ostracon, so multisig pubkey was not encoded correctly.
Accordingly multisig address was not generated correctly.

The problem was solved by modifying the prefix to match the ostracon.
@loin3 loin3 added the bug Something isn't working label Apr 13, 2022
@loin3 loin3 requested a review from zemyblue April 13, 2022 09:42
@loin3 loin3 linked an issue Apr 13, 2022 that may be closed by this pull request
3 tasks
@loin3 loin3 removed a link to an issue Apr 13, 2022
3 tasks
@loin3 loin3 self-assigned this Apr 13, 2022
After change Amino prefix to fit with Ostracon, test codes crashed because every addresses and pubkeys in test code were made for former Amino prefix.
Change addresses and pubkeys to Ostracon version.
generate new enigma bech32 pubkey from Ostracon secp256k1 pubkey
Copy link
Member

@zemyblue zemyblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the comment lines of the old modified code.

packages/amino/src/encoding.ts Show resolved Hide resolved
packages/amino/src/testutils.spec.ts Outdated Show resolved Hide resolved
packages/amino/src/testutils.spec.ts Outdated Show resolved Hide resolved
@loin3 loin3 mentioned this pull request Apr 15, 2022
Copy link
Member

@zemyblue zemyblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@dudong2 dudong2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

signingInstruction.msgs,
signingInstruction.fee,
signingInstruction.memo,
// signingInstruction.sigBlockHeight,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about removing the sigBlockHeight instead of commenting it out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know what sigBlockHeight was for, so I left it alone. I will remove it later.

[address3, signature3],
[address4, signature4],
]),
// signingInstruction.sigBlockHeight,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment with line 238.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same in here~

// On the composer's machine signing instructions are created.
// The composer does not need to be one of the signers.
const signingInstruction = await (async () => {
const client = await StargateClient.connect(simapp.tendermintUrl);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about changing tendermint to ostracon?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name tendermint is being used in quite a few places, so I think it would be good to get rid of it at once later.

@loin3 loin3 merged commit fb4a0ac into main Apr 18, 2022
@loin3 loin3 deleted the fix/multisig branch April 18, 2022 11:36
@zemyblue zemyblue mentioned this pull request Apr 20, 2022
@loin3 loin3 mentioned this pull request Apr 20, 2022
3 tasks
@zemyblue zemyblue mentioned this pull request Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants