Skip to content

bitcoindevkit/bitcoin-ffi

Readme

This crate does the light wrapping on rust-bitcoin required for use in uniffi-based libraries.

Usage

To leverage these types in your uniffi library, simply:

  1. Add a dependency on this crate:
bitcoin-ffi = { git = "https://github.com/bitcoindevkit/bitcoin-ffi.git", tag = "v0.1.2" }
  1. Add the following declarations to your UDL file for the types you wish to import. To read more about external type definitions, see this page on the Uniffi documentation.
[ExternalInterface="bitcoin_ffi"]
typedef extern Script;

[External="bitcoin_ffi"]
typedef extern Network;
  1. Add the following to your uniffi.toml config:
[bindings.kotlin.external_packages]
# Map the crate names from [External={name}] into Kotlin package names
bitcoin_ffi = "org.bitcoindevkit.bitcoin"

About

No description, website, or topics provided.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •