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

cosmrs: use Vec<u8> as the Tx::signatures type #164

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

tony-iqlusion
Copy link
Member

Adds a SignatureBytes type alias for Vec<u8>, and changes Tx::signatures to Vec<SignatureBytes>.

Previously signatures were being eagerly parsed as secp256k1::Signature, but this prevents parsing other kinds of signatures, such as Amino.

Closes #151

Adds a `SignatureBytes` type alias for `Vec<u8>`, and changes
`Tx::signatures` to `Vec<SignatureBytes>`.

Previously signatures were being eagerly parsed as
`secp256k1::Signature`, but this prevents parsing other kinds of
signatures, such as Amino.

Closes #151
@tony-iqlusion tony-iqlusion merged commit 73a9ac1 into main Jan 7, 2022
@tony-iqlusion tony-iqlusion deleted the cosmrs/dont-eagerly-parse-tx-signatures branch January 7, 2022 17:18
@tony-iqlusion tony-iqlusion mentioned this pull request Jan 7, 2022
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.

Can't parse a tx (Any). Get a signature error
2 participants