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(wallet): invalid metadata sig when creating code template utxo #4975

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Nov 29, 2022

Description

  • fixes invalid metadata signature error when submitting transaction with custom outputs e.g. CodeTemplateRegistration

Motivation and Context

create_send_to_self_with_output generates a transaction with an invalid metadata signature. This function is used by create_template_registration in wallet GRPC.

In order to send a send-to-self transaction, the UnblindedOutputBuilder needs to create a complete signature for the new output.

The UnblindedOutputBuilder is only currently used in create_pay_to_self_containing_outputs calls.

How Has This Been Tested?

Manually, able to submit a valid template reg utxo

sdbondi added a commit to tari-project/tari-dan that referenced this pull request Nov 29, 2022
Description
---
Uses `development` branch instead of `feature-dan`

Motivation and Context
---
`feature-dan` was merged into `development`

How Has This Been Tested?
---
Manually, with fix from tari-project/tari#4975
Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

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

Nice, we actually need to create some tests for this in this repo

@stringhandler stringhandler merged commit a8e2e00 into tari-project:development Nov 30, 2022
@sdbondi sdbondi deleted the fix-metadta-sig-error-code-templates branch November 30, 2022 06:58
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.

3 participants