Skip to content

Commit

Permalink
mnemonic word lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneearth committed Mar 13, 2018
1 parent d8e23b3 commit aa52582
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BITBOX",
"version": "0.3.1",
"version": "0.3.2",
"description": "A development framework for Bitcoin Cash",
"main": "main.js",
"productName": "BITBOX",
Expand Down Expand Up @@ -30,7 +30,7 @@
"babel-preset-react": "^6.24.1",
"babel-register": "^6.26.0",
"bchaddrjs": "^0.1.4",
"bitbox-cli": "0.3.11",
"bitbox-cli": "0.3.17",
"bitcoinjs-lib": "^3.3.2",
"bitcoinjs-message": "^2.0.0",
"body-parser": "^1.18.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SignAndVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class SignAndVerify extends Component {
<label>Address</label>
<input id="address1" type='text' value={this.props.signAndVerify.address1} onChange={this.handleInputChange.bind(this)}/>
<label>Signature</label>
<textarea disabled id="signature1" value={this.props.signAndVerify.signature1} onChange={this.handleInputChange.bind(this)}></textarea>
<textarea readOnly id="signature1" value={this.props.signAndVerify.signature1} onChange={this.handleInputChange.bind(this)}></textarea>
</form>
<button className="pure-button" onClick={this.handleClear.bind(this, 'sign')}>Clear</button>
<button className="pure-button" onClick={this.signMessage.bind(this)}>Sign</button>
Expand Down
12 changes: 12 additions & 0 deletions src/components/WalletConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ class WalletConfiguration extends Component {
<input id='totalAccounts' type='number' placeholder="Number of accounts" value={this.props.configuration.wallet.totalAccounts} onChange={this.props.handleConfigChange.bind(this)} />

{entropySlider}

<label>Mnemonic Language</label>
<select value={this.props.configuration.wallet.language} id='language' onChange={this.props.handleConfigChange.bind(this)}>
<option value="english">English</option>
<option value="chinese_simplified">Chinese simplified</option>
<option value="chinese_traditional">Chinese traditional</option>
<option value="french">French</option>
<option value="italian">Italian</option>
<option value="japanese">Japanese</option>
<option value="korean">Korean</option>
<option value="spanish">Spanish</option>
</select>
</fieldset>
</form>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/models/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Configuration {
change: "0",
address_index: "0"
},
password: ''
password: '',
language: 'english'
};
}
}
Expand Down

0 comments on commit aa52582

Please sign in to comment.