Skip to content

Commit

Permalink
fixed syntax error in VMCDigestExample.java
Browse files Browse the repository at this point in the history
  • Loading branch information
reece committed Dec 29, 2017
1 parent 2f3a83e commit 078b317
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
*-checkpoint.ipynb
*.class
*.orig
*~
__pycache__
doc
venv
archive
demos/python/notebooks/ApoE Example.vmc.json
doc
venv
7 changes: 3 additions & 4 deletions demos/java/VMCDigestExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
import java.util.Base64;

class VMCDigestExample {
public static void main(String args[]){
public static void main(String args[]) {
Object o = null;
String ser = serialize(o);
byte[] serb = ser.getBytes(US_ASCII);
String vmcdigest = base64us(sha512t24(serb));
System.out.println("ser = " + ser);
System.out.println("vmc digest = " + vmcdigest);
}
}

public static String serialize(Object o) {
// This is a mock function to return an example serialization.
Expand Down Expand Up @@ -65,5 +65,4 @@ private static String base64us(byte[] bytes) {
// Python's base64.urlsafe_b64encode(bytes)
return Base64.getUrlEncoder().encodeToString(bytes);
}


}

0 comments on commit 078b317

Please sign in to comment.