<FormSection title='Key Information'>
<TextField title='Alias' placeholder='Alias' fieldProps={alias} autoFocus={true} />
- {/*<TextField title='Password' placeholder='Password' fieldProps={password} autoFocus={false} type={'password'} />*/}
<div>
<input type='checkbox' id='private_key_file_input'
checked={this.state.import}
<input type='file' style={{'display': 'flex', 'alignItems': 'center', 'fontSize': '12px'}}
onChange={this.handleFileChange.bind(this)}/>
}
+ <TextField title='Password' placeholder='Password' fieldProps={password} autoFocus={false} type={'password'} />
</FormSection>
</FormContainer>
)
-const uuid = require('uuid')
const shared = require('../shared')
const mockHsmKeysAPI = (client) => {
return {
create: (params, cb) => {
- let body = Object.assign({ clientToken: uuid.v4() }, params, {password: '123456'})
+ let body = Object.assign({}, params)
const uri = body.xprv ? '/import-private-key' : '/create-key'
return shared.tryCallback(