Skip to content

Implement basic spending policy APIs #80

Closed
@notmandatory

Description

@notmandatory

Description

Add or update APIs in bdk-ffi to support basic spending policy features. Also test the new APIs by updating bdk-kotlin or bdk-swift to use the new and updated APIs. See "Spending Policy Demo" for bdk-cli based example usage.

APIs include:

  1. Giving a wallet, return Policy structure (as Dictionary?) for "external" and "internal" descriptors.
  2. When creating a transaction PSBT, specify the "external policy" to use

Expected Outcomes

  • Update bdk.udl and lib.rs with functions and structs as needed
  • Update bdk-kotlin or bdk-swift and add tests to cover new spending policy functionality

Resources

Skills Required

Mentor(s)

@artfuldev @notmandatory

Difficulty

Medium

Competency Test (optional)

  • Install rust, compile bdk-ffi and build and test bdk-swift or bdk-kotlin.
  • Read through the BDK docs.
  • Use bdk-cli to walk through the "Spending Policy Demo"
  • Install and run example bdk-kotlin or bdk-swift example wallet.
  • Familiarity with basic rust, should be able to write basic structs and functions.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions