Introducing default sequence number as a constant
This commit is contained in:
parent
9b15a0b5da
commit
85430b8b46
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue