-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8994f04
commit cf8fa10
Showing
178 changed files
with
878 additions
and
4,184 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
Binary file not shown.
Binary file not shown.
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
16 changes: 0 additions & 16 deletions
16
src/main/java/org/arkecosystem/crypto/enums/HtlcLockExpirationType.java
This file was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
src/main/java/org/arkecosystem/crypto/signature/CompressedPubKeyDataImpl.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.arkecosystem.crypto.signature; | ||
|
||
import java.util.Arrays; | ||
import org.bitcoinj.secp256k1.api.CompressedPubKeyData; | ||
|
||
public class CompressedPubKeyDataImpl implements CompressedPubKeyData { | ||
|
||
private final byte[] bytes; | ||
|
||
public CompressedPubKeyDataImpl(byte[] bytes) { | ||
if (bytes.length != 33) { | ||
throw new IllegalArgumentException("Compressed public key must be 33 bytes"); | ||
} | ||
this.bytes = Arrays.copyOf(bytes, bytes.length); | ||
} | ||
|
||
@Override | ||
public byte[] bytes() { | ||
return Arrays.copyOf(bytes, bytes.length); | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
src/main/java/org/arkecosystem/crypto/signature/ECDSASigner.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/org/arkecosystem/crypto/signature/ECDSAVerifier.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.