mirror of
https://github.com/signalapp/libsignal.git
synced 2026-05-10 17:12:16 +02:00
Use a better name
Unrelated, remove an unused import
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
package org.whispersystems.libsignal.ecc;
|
||||
|
||||
import org.signal.client.internal.Native;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class ECPublicKey implements Comparable<ECPublicKey> {
|
||||
@@ -24,7 +23,7 @@ public class ECPublicKey implements Comparable<ECPublicKey> {
|
||||
this.handle = Native.ECPublicKey_Deserialize(serialized, 0);
|
||||
}
|
||||
|
||||
static public ECPublicKey fromPublicKey(byte[] key) {
|
||||
static public ECPublicKey fromPublicKeyBytes(byte[] key) {
|
||||
byte[] with_type = new byte[33];
|
||||
with_type[0] = 0x05;
|
||||
System.arraycopy(key, 0, with_type, 1, 32);
|
||||
|
||||
Reference in New Issue
Block a user