mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +00:00
handle wif format private keys with uncompressed pubkeys
This commit is contained in:
parent
9618c73c50
commit
ee732fb223
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ public class DumpedPrivateKey extends VersionedChecksummedBytes {
|
|||
* Returns an ECKey created from this encoded private key.
|
||||
*/
|
||||
public ECKey getKey() {
|
||||
return ECKey.fromPrivate(bytes);
|
||||
return ECKey.fromPrivate(bytes, compressed);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -99,7 +99,7 @@ public class TransactionSignature {
|
|||
}
|
||||
|
||||
public static TransactionSignature decodeFromBitcoin(byte[] bytes, boolean requireCanonicalEncoding) throws SignatureDecodeException {
|
||||
if(bytes.length == 64 || bytes.length == 65) {
|
||||
if(bytes.length == 64) {
|
||||
return decodeFromBitcoin(Type.SCHNORR, bytes, requireCanonicalEncoding);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue