Introducing default sequence number as a constant

develop
Nelson R. Perez 2017-04-14 17:41:50 -05:00
parent 9b15a0b5da
commit 85430b8b46
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,5 @@
package de.bitsharesmunich.graphenej;
import de.bitsharesmunich.graphenej.crypto.SecureRandomGenerator;
import org.bitcoinj.core.DumpedPrivateKey;
import org.bitcoinj.core.ECKey;
import org.bitcoinj.core.NetworkParameters;
@ -11,6 +10,8 @@ import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.ArrayList;
import de.bitsharesmunich.graphenej.crypto.SecureRandomGenerator;
/**
* Class used to encapsulate all BrainKey-related operations.
*/
@ -22,6 +23,9 @@ public class BrainKey {
/* The required number of words */
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 */
private ECKey mPrivateKey;