aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Commitment.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Commitment.java')
-rw-r--r--libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Commitment.java42
1 files changed, 0 insertions, 42 deletions
diff --git a/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Commitment.java b/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Commitment.java
deleted file mode 100644
index 9f5bcdf92..000000000
--- a/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Commitment.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.spongycastle.crypto;
-
-/**
- * General holding class for a commitment.
- */
-public class Commitment
-{
- private final byte[] secret;
- private final byte[] commitment;
-
- /**
- * Base constructor.
- *
- * @param secret an encoding of the secret required to reveal the commitment.
- * @param commitment an encoding of the sealed commitment.
- */
- public Commitment(byte[] secret, byte[] commitment)
- {
- this.secret = secret;
- this.commitment = commitment;
- }
-
- /**
- * The secret required to reveal the commitment.
- *
- * @return an encoding of the secret associated with the commitment.
- */
- public byte[] getSecret()
- {
- return secret;
- }
-
- /**
- * The sealed commitment.
- *
- * @return an encoding of the sealed commitment.
- */
- public byte[] getCommitment()
- {
- return commitment;
- }
-}