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 covenant #4115

Merged
merged 3 commits into from
May 19, 2022

Conversation

mrnaveira
Copy link
Contributor

Description

  • Created a new FFI method to create a covenant object from bytes.
  • 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 covenants only.

How Has This Been Tested?

Created two new unit tests for the new FFI method

@aviator-app aviator-app bot merged commit dd65b4b into tari-project:development May 19, 2022
stringhandler pushed a commit that referenced this pull request May 20, 2022
Description
---
* Created a new FFI method to create a covenant object from bytes.
* 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 covenants only.

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.

2 participants