ElementsProject / rust-elements

Rust support for Elements transaction/block deserialization
Creative Commons Zero v1.0 Universal
52 stars 33 forks source link

add `Address::is_liquid` #216

Closed RCasatta closed 2 months ago

RCasatta commented 2 months ago

User code can already compare against AddressParams, but it seems easier to find a method to check if the address is liquid. Even tough is less general because you can't discriminate between elements and liquid testnet, most of the time wallets are interested only in the mainnet or not discrimination.

apoelstra commented 2 months ago

CI failures are unrelated and due to poor pinning of dependencies and toolchains.