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

Implement pubkey compression/decompression in TxIns protobuf encoding/decoding #2171

Merged

Conversation

alejoacosta74
Copy link
Contributor

@alejoacosta74 alejoacosta74 commented Sep 30, 2024

No description provided.

crypto/crypto.go Outdated Show resolved Hide resolved
@alejoacosta74 alejoacosta74 force-pushed the pubkey-compressed branch 2 times, most recently from 88c087c to 4195671 Compare October 1, 2024 19:19
@alejoacosta74 alejoacosta74 changed the title extend crypto PubkeyBytesToAddress to handle compressed pub keys Implement pubkey compression/decompression in RPC service Oct 1, 2024
Copy link
Member

@wizeguyy wizeguyy left a comment

Choose a reason for hiding this comment

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

concept ACK, but tests are failing

wizeguyy
wizeguyy previously approved these changes Oct 2, 2024
Copy link
Contributor

@jdowning100 jdowning100 left a comment

Choose a reason for hiding this comment

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

This PR is not complete. You need to also compress/decompress the pubkey in RPCTxIn and TxInJSON structs and ensure that it is encoded properly in quai_getTransactionByHash
If we want to fully support compressed public keys, someone must also make appropriate changes in quais.js to support the compressed public key type and ensure that it is compressed before sending to the node

@alejoacosta74 alejoacosta74 changed the title Implement pubkey compression/decompression in RPC service Implement pubkey compression/decompression in TxIns protobuf encoding/decoding Oct 7, 2024
Copy link
Contributor

@gameofpointers gameofpointers left a comment

Choose a reason for hiding this comment

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

@robertlincecum said it doesnt work

@gameofpointers gameofpointers self-requested a review October 9, 2024 21:39
gameofpointers
gameofpointers previously approved these changes Oct 10, 2024
@alejoacosta74 alejoacosta74 dismissed jdowning100’s stale review October 10, 2024 15:53

It was agreed to handle the JSON RPC conversion on a separate commit

@alejoacosta74 alejoacosta74 merged commit c486917 into dominant-strategies:main Oct 10, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants