Introducing default sequence number as a constant

This commit is contained in:
Nelson R. Perez 2017-04-14 17:41:50 -05:00
parent 9b15a0b5da
commit 85430b8b46

View file

@ -1,6 +1,5 @@
package de.bitsharesmunich.graphenej; package de.bitsharesmunich.graphenej;
import de.bitsharesmunich.graphenej.crypto.SecureRandomGenerator;
import org.bitcoinj.core.DumpedPrivateKey; import org.bitcoinj.core.DumpedPrivateKey;
import org.bitcoinj.core.ECKey; import org.bitcoinj.core.ECKey;
import org.bitcoinj.core.NetworkParameters; import org.bitcoinj.core.NetworkParameters;
@ -11,6 +10,8 @@ import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom; import java.security.SecureRandom;
import java.util.ArrayList; import java.util.ArrayList;
import de.bitsharesmunich.graphenej.crypto.SecureRandomGenerator;
/** /**
* Class used to encapsulate all BrainKey-related operations. * Class used to encapsulate all BrainKey-related operations.
*/ */
@ -22,6 +23,9 @@ public class BrainKey {
/* The required number of words */ /* The required number of words */
public static final int BRAINKEY_WORD_COUNT = 12; public static final int BRAINKEY_WORD_COUNT = 12;
/* The default sequence number is zero */
public static final int DEFAULT_SEQUENCE_NUMBER = 0;
/* The corresponding private key derivated from the brain key */ /* The corresponding private key derivated from the brain key */
private ECKey mPrivateKey; private ECKey mPrivateKey;