mirror of
https://github.com/monero-project/research-lab.git
synced 2024-11-16 15:57:37 +00:00
renamed bootleruffing to stringct
This commit is contained in:
parent
63dfd2bcae
commit
6ae0228254
4 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
@ -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());
|
||||
|
||||
}
|
||||
|
|
@ -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<testIterations; i++) {
|
Loading…
Reference in a new issue