Skip to content

Uniformly use primitive types in FFI boundary, with runtime validation #738

@spacebear21

Description

@spacebear21

On one hand strong types make it harder to misue the API.

on the other hand, they require conversion on the implementers side. It could get even trickier if there are different versions of bdk-ffi and payjoin-ffi that want to work together but use different bitcoin-ffi versions.

Perhaps to compose these, we need a bdk-ffi that depends on payjoin-ffi with a feature gate so that the same bitcoin-ffi dependency can be used without duplication. @thunderbiscuit Have you given this any thought before?

_Originally posted by @DanGould in LtbLightning/payjoin-ffi#70 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions