Package org.bitcoinj.base.exceptions
package org.bitcoinj.base.exceptions
-
ClassDescriptionThis exception is thrown by the
EncodedPrivateKey
hierarchy of classes when you try and decode an address or private key with an invalid prefix (version header or human-readable part).This exception is thrown bySegwitAddress
when you try to decode data and the witness version doesn't match the Bech32 encoding as per BIP350.This exception is thrown by theEncodedPrivateKey
hierarchy of classes when you try and decode an address with a prefix (version header or human-readable part) that used by another network (usually: mainnet vs testnet).