Commit 9754bae
committed
Merge rust-bitcoin#2810: Add an
ea61e9f Add an AddressData type (Tobin C. Harding)
Pull request description:
This is a backport of the first patch (excluding api file changes) of rust-bitcoin#2808.
----
In the 0.32.0 release we removed the `address::Payload` struct because it was deemed an implementation detail. As a byproduct of doing so we made it impossible for users to match on an enum and get the address payload (or data).
- Add a public `AddressData` enum that holds an address' encoded data.
- Add a conversion function to `Address` that returns the data enum.
ACKs for top commit:
apoelstra:
ACK ea61e9f
Tree-SHA512: 13ffd4dac6a6f58cd99f280301fed9188d70a411ada6eb3e3dff25570d66a047568a6035a5e02c2b8e9d59cf4f4deae531b521e99a6bdf3fcad325febc280e2fAddressData type1 file changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
238 | 262 | | |
239 | 263 | | |
240 | 264 | | |
| |||
475 | 499 | | |
476 | 500 | | |
477 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
478 | 513 | | |
479 | 514 | | |
480 | 515 | | |
| |||
0 commit comments