77import org .arkecosystem .crypto .identities .PrivateKey ;
88import org .bitcoinj .core .ECKey ;
99import org .bitcoinj .core .Sha256Hash ;
10- import org .bitcoinj .core .SignatureDecodeException ;
1110
1211import java .lang .reflect .Type ;
1312import java .nio .ByteBuffer ;
@@ -67,11 +66,7 @@ public boolean verify() {
6766 byte [] signature = Hex .decode (this .signature );
6867 byte [] bytes = toBytes ();
6968
70- try {
71- return ECKey .verify (Sha256Hash .hash (bytes ), signature , keys .getPubKey ());
72- } catch (SignatureDecodeException e ) {
73- return false ;
74- }
69+ return ECKey .verify (Sha256Hash .hash (bytes ), signature , keys .getPubKey ());
7570 }
7671
7772 public boolean secondVerify (String secondPublicKey ) {
@@ -80,11 +75,7 @@ public boolean secondVerify(String secondPublicKey) {
8075 byte [] signature = Hex .decode (this .signSignature );
8176 byte [] bytes = toBytes (false );
8277
83- try {
84- return ECKey .verify (Sha256Hash .hash (bytes ), signature , keys .getPubKey ());
85- } catch (SignatureDecodeException e ) {
86- return false ;
87- }
78+ return ECKey .verify (Sha256Hash .hash (bytes ), signature , keys .getPubKey ());
8879 }
8980
9081 public Transaction parseSignatures (String serialized , int startOffset ) {
0 commit comments