Class AddressFormatException.UnexpectedWitnessVersion

All Implemented Interfaces:
Serializable
Enclosing class:
AddressFormatException

public static class AddressFormatException.UnexpectedWitnessVersion extends AddressFormatException
This exception is thrown by SegwitAddress when you try to decode data and the witness version doesn't match the Bech32 encoding as per BIP350. You shouldn't allow the user to proceed in this case.
See Also:
  • Constructor Details

    • UnexpectedWitnessVersion

      public UnexpectedWitnessVersion()
    • UnexpectedWitnessVersion

      public UnexpectedWitnessVersion(String message)