Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
*
*/
public class P256K1FieldElementImpl implements P256K1FieldElement {
public class P256K1FieldElementImpl implements P256K1FieldElement, ByteArray {
private final byte[] value;

public P256K1FieldElementImpl(BigInteger i) {
Expand Down Expand Up @@ -62,4 +62,14 @@ public boolean equals(Object o) {
public int hashCode() {
return Arrays.hashCode(value);
}

@Override
public byte[] bytes() {
return value.clone();
}

@Override
public String toString() {
return formatHex();
}
}