diff --git a/bdk-ffi/src/bdk.udl b/bdk-ffi/src/bdk.udl index 4a7373f2..61985e13 100644 --- a/bdk-ffi/src/bdk.udl +++ b/bdk-ffi/src/bdk.udl @@ -444,7 +444,9 @@ interface Wallet { interface Update {}; -interface Policy {}; +interface Policy { + string id(); +}; interface TxBuilder { constructor(); diff --git a/bdk-ffi/src/types.rs b/bdk-ffi/src/types.rs index 392d4539..d8ff5ea5 100644 --- a/bdk-ffi/src/types.rs +++ b/bdk-ffi/src/types.rs @@ -251,3 +251,8 @@ impl From for BdkPolicy { value.0 } } +impl Policy { + pub fn id(&self) -> String { + self.0.id.clone() + } +}