From 6ae0228254f792370ae025a6f938c0cf6eb0cb29 Mon Sep 17 00:00:00 2001 From: knaccc Date: Sat, 23 Sep 2017 20:25:11 +0100 Subject: [PATCH] renamed bootleruffing to stringct --- .../{BootleRuffingCursor.java => StringCTCursor.java} | 4 ++-- .../src/how/monero/hodl/ringSignature/StringCT.java | 4 ++-- ...BootleRuffingBenchmarks.java => StringCTBenchmarks.java} | 6 +++--- .../{BootleRuffingSpendTest.java => StringCTSpendTest.java} | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) rename source-code/RuffCT-java/src/how/monero/hodl/cursor/{BootleRuffingCursor.java => StringCTCursor.java} (89%) rename source-code/RuffCT-java/src/test/how/monero/hodl/{BootleRuffingBenchmarks.java => StringCTBenchmarks.java} (95%) rename source-code/RuffCT-java/src/test/how/monero/hodl/{BootleRuffingSpendTest.java => StringCTSpendTest.java} (98%) diff --git a/source-code/RuffCT-java/src/how/monero/hodl/cursor/BootleRuffingCursor.java b/source-code/RuffCT-java/src/how/monero/hodl/cursor/StringCTCursor.java similarity index 89% rename from source-code/RuffCT-java/src/how/monero/hodl/cursor/BootleRuffingCursor.java rename to source-code/RuffCT-java/src/how/monero/hodl/cursor/StringCTCursor.java index c861147..2086f22 100644 --- a/source-code/RuffCT-java/src/how/monero/hodl/cursor/BootleRuffingCursor.java +++ b/source-code/RuffCT-java/src/how/monero/hodl/cursor/StringCTCursor.java @@ -4,10 +4,10 @@ import how.monero.hodl.crypto.Curve25519Point; import how.monero.hodl.crypto.Curve25519PointPair; import how.monero.hodl.crypto.Scalar; -public class BootleRuffingCursor extends Cursor { +public class StringCTCursor extends Cursor { public byte[] data; - public BootleRuffingCursor(byte[] data) { + public StringCTCursor(byte[] data) { super(data); } diff --git a/source-code/RuffCT-java/src/how/monero/hodl/ringSignature/StringCT.java b/source-code/RuffCT-java/src/how/monero/hodl/ringSignature/StringCT.java index 05f96a2..a7c25a7 100644 --- a/source-code/RuffCT-java/src/how/monero/hodl/ringSignature/StringCT.java +++ b/source-code/RuffCT-java/src/how/monero/hodl/ringSignature/StringCT.java @@ -3,7 +3,7 @@ package how.monero.hodl.ringSignature; import how.monero.hodl.crypto.Curve25519Point; import how.monero.hodl.crypto.Curve25519PointPair; import how.monero.hodl.crypto.Scalar; -import how.monero.hodl.cursor.BootleRuffingCursor; +import how.monero.hodl.cursor.StringCTCursor; import how.monero.hodl.util.VarInt; import java.math.BigInteger; @@ -111,7 +111,7 @@ public class StringCT { return result; } public static SpendSignature fromBytes(byte[] a) { - BootleRuffingCursor cursor = new BootleRuffingCursor(a); + StringCTCursor cursor = new StringCTCursor(a); int decompositionBase = (int) cursor.readVarInt(); int decompositionExponent = (int) cursor.readVarInt(); return new SpendSignature(decompositionBase, decompositionExponent, diff --git a/source-code/RuffCT-java/src/test/how/monero/hodl/BootleRuffingBenchmarks.java b/source-code/RuffCT-java/src/test/how/monero/hodl/StringCTBenchmarks.java similarity index 95% rename from source-code/RuffCT-java/src/test/how/monero/hodl/BootleRuffingBenchmarks.java rename to source-code/RuffCT-java/src/test/how/monero/hodl/StringCTBenchmarks.java index d066fa4..a87ecb5 100644 --- a/source-code/RuffCT-java/src/test/how/monero/hodl/BootleRuffingBenchmarks.java +++ b/source-code/RuffCT-java/src/test/how/monero/hodl/StringCTBenchmarks.java @@ -11,9 +11,9 @@ import java.util.Date; import java.util.List; import static how.monero.hodl.ringSignature.StringCT.*; -import static test.how.monero.hodl.BootleRuffingSpendTest.createTestSpendParams; +import static test.how.monero.hodl.StringCTSpendTest.createTestSpendParams; -public class BootleRuffingBenchmarks { +public class StringCTBenchmarks { public static void spendTest() throws IOException { @@ -112,7 +112,7 @@ public class BootleRuffingBenchmarks { } } System.out.println(csv); - Files.write(new File(System.getProperty("user.home"), "bootleruffing-benchmarks.csv").toPath(), csv.getBytes()); + Files.write(new File(System.getProperty("user.home"), "stringCT-benchmarks.csv").toPath(), csv.getBytes()); } diff --git a/source-code/RuffCT-java/src/test/how/monero/hodl/BootleRuffingSpendTest.java b/source-code/RuffCT-java/src/test/how/monero/hodl/StringCTSpendTest.java similarity index 98% rename from source-code/RuffCT-java/src/test/how/monero/hodl/BootleRuffingSpendTest.java rename to source-code/RuffCT-java/src/test/how/monero/hodl/StringCTSpendTest.java index 1360f4e..6f0cbe5 100644 --- a/source-code/RuffCT-java/src/test/how/monero/hodl/BootleRuffingSpendTest.java +++ b/source-code/RuffCT-java/src/test/how/monero/hodl/StringCTSpendTest.java @@ -12,7 +12,7 @@ import java.util.Date; import static how.monero.hodl.crypto.CryptoUtil.*; import static how.monero.hodl.ringSignature.StringCT.*; -public class BootleRuffingSpendTest { +public class StringCTSpendTest { public static SpendParams createTestSpendParams(int decompositionBase, int decompositionExponent, int inputs) { @@ -138,7 +138,7 @@ public class BootleRuffingSpendTest { Curve25519Point.scalarBaseMults = 0; //Ed25519GroupElement.enableLineRecording = true; - Curve25519Point.lineRecordingSourceFile = "BootleRuffing.java"; + Curve25519Point.lineRecordingSourceFile = "StringCT.java"; // verify the spend transaction for (int i=0; i