-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btc: Improved handling of non-standard future addresses
The Minsc parser accepts standard addresses encoded in base58/bech32 directly in code, however it does not recognize addresses with future/non-standard programs versions/lengths, for example the P2A address `bc1pfeessrawgf`. To enable using them: - Support `address("ADDR")` to construct an Address type for future witness versions or non-standard programs lengths. This can also be used to verify the address string matches the expected network, with e.g. `address("ADDR", signet)` - Display non-standard addresses using their scriptPubKey. Previously they were displayed using their bech32 encoding, which would fail to round-trip back when parsed as code.
- Loading branch information
Showing
3 changed files
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters