Skip to content
Open
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
14 changes: 1 addition & 13 deletions java/src/main/java/com/bc/ur/UR.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,11 @@ public class UR {

private static final String UR_TYPE_PATTERN = "^[a-z0-9-]+$";

public static UR create(String type, byte[] message) {
return UR_new_from_message(type, message);
}

public static UR create(byte[] message) {
return create("bytes", message);
}

private final String type;

private final byte[] cbor;

private UR(String type, byte[] cbor) {
public UR(String type, byte[] cbor) {
validateType(type);
this.type = type;
this.cbor = cbor;
Expand All @@ -40,8 +32,4 @@ public byte[] getCbor() {
public String getType() {
return type;
}

public byte[] getMessage() {
return UR_get_message(this);
}
}