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

feat(wallet_ffi): new ffi method to create output features #4109

Merged
merged 3 commits into from
May 19, 2022

Conversation

mrnaveira
Copy link
Contributor

Description

  • Created a new FFI method to create an output features object, by passing the byte values as parameters.
  • I decided to not expose the DAN layer features, as they are most likely going to change and also would require exposing more struct definitions.
  • Updated the C header with the definition of the new method

Motivation and Context

Currently the mobile apps cannot properly import faucet UTXOs, as they are passing null values for output features and covenants to the wallet_import_external_utxo_as_non_rewindable method, which is not allowed. So the mobile apps needs new FFI methods to create both output features and covenants. This pull request deals with output features only.

How Has This Been Tested?

Created two new unit tests for the new FFI method

@stringhandler stringhandler marked this pull request as ready for review May 19, 2022 07:02
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.

LGTM

@aviator-app aviator-app bot merged commit f8fa3ec into tari-project:development May 19, 2022
stringhandler pushed a commit that referenced this pull request May 20, 2022
…g size for dibbler) (#4118)

Description
---
* Created a new FFI method to create an output features object, by passing the byte values as parameters.
* I decided to not expose the DAN layer features, as they are most likely going to change and also would require exposing more struct definitions.
* Updated the C header with the definition of the new method

Motivation and Context
---
Currently the mobile apps cannot properly import faucet UTXOs, as they are passing null values for output features and covenants to the `wallet_import_external_utxo_as_non_rewindable` method, which is not allowed. So the mobile apps needs new FFI methods to create both output features and covenants. This pull request deals with output features only.

**This PR is an adaptation due to the output flags size, as the [original PR](#4109) was done over development which has consensus breaking changes (flag size was increased from 1 byte to 2 bytes).**

How Has This Been Tested?
---
Created two new unit tests for the new FFI method
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