ethereum_bip44 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1ac7dded1881ea89ba528ade58c9ec2b4ff743dc
4
+ data.tar.gz: ba56b19aaf62a63ce38c00628d077189628b316b
5
+ SHA512:
6
+ metadata.gz: faa56578be1bb137faf110b61155899e719910f2ec9810f31aa703cfae114de4256068685bdd22df42670bf914cd9527d55cae7dfceb026ac2b10fe6aea30738
7
+ data.tar.gz: 4c2e8a40d126c55093bf7fdd6e0b1d61a074f2c0c6dd399c8c1cd75345ec5326684b9e9eb696a6fd991086e6cdb501e3e941080390171e8cb09faed1839ac687
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.4.1" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="btcruby (v1.7, RVM: ruby-2.4.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.15.1, RVM: ruby-2.4.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="digest-sha3 (v1.1.0, RVM: ruby-2.4.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="ecdsa (v1.2.0, RVM: ruby-2.4.1) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.18, RVM: ruby-2.4.1) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, RVM: ruby-2.4.1) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.4.1) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rlp (v0.7.3, RVM: ruby-2.4.1) [gem]" level="application" />
18
+ </component>
19
+ </module>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.3.3" project-jdk-type="RUBY_SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ethereum_bip44.iml" filepath="$PROJECT_DIR$/.idea/ethereum_bip44.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,498 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="6adfe41e-75d6-4c9f-94a7-6cf45e8f0229" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
7
+ </list>
8
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="CoverageDataManager">
16
+ <SUITE FILE_PATH="coverage/ethereum_bip44@test_it_can_create_a_new_wallet_from_private_seed__ethereum_bip44.coverage" NAME="test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44 Coverage Results" MODIFIED="1509688495888" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ethereum_bip44" />
17
+ <SUITE FILE_PATH="coverage/ethereum_bip44@test_it_can_generate_same_address_from_different_way__ethereum_bip44.coverage" NAME="test_it_can_generate_same_address_from_different_way: ethereum_bip44 Coverage Results" MODIFIED="1509688457054" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ethereum_bip44" />
18
+ <SUITE FILE_PATH="coverage/ethereum_bip44@test_it_can_create_a_new_wallet_from_public_seed__ethereum_bip44.coverage" NAME="test_it_can_create_a_new_wallet_from_public_seed: ethereum_bip44 Coverage Results" MODIFIED="1509687021066" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ethereum_bip44" />
19
+ <SUITE FILE_PATH="coverage/ethereum_bip44@Run_test__ethereum_bip44_test___ethereum_bip44.coverage" NAME="Run test 'ethereum_bip44_test': ethereum_bip44 Coverage Results" MODIFIED="1509687553195" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ethereum_bip44" />
20
+ <SUITE FILE_PATH="coverage/ethereum_bip44@test_it_can_create_a_new_wallet__ethereum_bip44.coverage" NAME="test_it_can_create_a_new_wallet: ethereum_bip44 Coverage Results" MODIFIED="1509687010786" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ethereum_bip44" />
21
+ </component>
22
+ <component name="FileEditorManager">
23
+ <leaf>
24
+ <file leaf-file-name="ethereum_bip44.rb" pinned="false" current-in-tab="false">
25
+ <entry file="file://$PROJECT_DIR$/lib/ethereum_bip44.rb">
26
+ <provider selected="true" editor-type-id="text-editor">
27
+ <state relative-caret-position="385">
28
+ <caret line="56" column="6" lean-forward="false" selection-start-line="56" selection-start-column="6" selection-end-line="56" selection-end-column="6" />
29
+ <folding />
30
+ </state>
31
+ </provider>
32
+ </entry>
33
+ </file>
34
+ <file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
35
+ <entry file="file://$PROJECT_DIR$/lib/ethereum_bip44/utils.rb">
36
+ <provider selected="true" editor-type-id="text-editor">
37
+ <state relative-caret-position="19">
38
+ <caret line="1" column="14" lean-forward="false" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="14" />
39
+ <folding />
40
+ </state>
41
+ </provider>
42
+ </entry>
43
+ </file>
44
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
45
+ <entry file="file://$PROJECT_DIR$/lib/ethereum_bip44/version.rb">
46
+ <provider selected="true" editor-type-id="text-editor">
47
+ <state relative-caret-position="0">
48
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
49
+ <folding />
50
+ </state>
51
+ </provider>
52
+ </entry>
53
+ </file>
54
+ <file leaf-file-name="ethereum_bip44.gemspec" pinned="false" current-in-tab="false">
55
+ <entry file="file://$PROJECT_DIR$/ethereum_bip44.gemspec">
56
+ <provider selected="true" editor-type-id="text-editor">
57
+ <state relative-caret-position="395">
58
+ <caret line="21" column="30" lean-forward="true" selection-start-line="21" selection-start-column="30" selection-end-line="21" selection-end-column="30" />
59
+ <folding />
60
+ </state>
61
+ </provider>
62
+ </entry>
63
+ </file>
64
+ <file leaf-file-name="ethereum_bip44_test.rb" pinned="false" current-in-tab="false">
65
+ <entry file="file://$PROJECT_DIR$/test/ethereum_bip44_test.rb">
66
+ <provider selected="true" editor-type-id="text-editor">
67
+ <state relative-caret-position="418">
68
+ <caret line="22" column="29" lean-forward="false" selection-start-line="22" selection-start-column="29" selection-end-line="22" selection-end-column="29" />
69
+ <folding />
70
+ </state>
71
+ </provider>
72
+ </entry>
73
+ </file>
74
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
75
+ <entry file="file://$PROJECT_DIR$/README.md">
76
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
77
+ <state split_layout="FIRST">
78
+ <first_editor relative-caret-position="349">
79
+ <caret line="26" column="8" lean-forward="false" selection-start-line="26" selection-start-column="8" selection-end-line="26" selection-end-column="8" />
80
+ <folding />
81
+ </first_editor>
82
+ <second_editor />
83
+ </state>
84
+ </provider>
85
+ </entry>
86
+ </file>
87
+ </leaf>
88
+ </component>
89
+ <component name="FileTemplateManagerImpl">
90
+ <option name="RECENT_TEMPLATES">
91
+ <list>
92
+ <option value="Ruby Class Template" />
93
+ </list>
94
+ </option>
95
+ </component>
96
+ <component name="Git.Settings">
97
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
98
+ </component>
99
+ <component name="IdeDocumentHistory">
100
+ <option name="CHANGED_PATHS">
101
+ <list>
102
+ <option value="$PROJECT_DIR$/lib/ethereum_bip44/utils.rb" />
103
+ <option value="$PROJECT_DIR$/lib/ethereum_bip44.rb" />
104
+ <option value="$PROJECT_DIR$/test/ethereum_bip44_test.rb" />
105
+ <option value="$PROJECT_DIR$/ethereum_bip44.gemspec" />
106
+ <option value="$PROJECT_DIR$/README.md" />
107
+ </list>
108
+ </option>
109
+ </component>
110
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
111
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
112
+ <component name="JsGulpfileManager">
113
+ <detection-done>true</detection-done>
114
+ <sorting>DEFINITION_ORDER</sorting>
115
+ </component>
116
+ <component name="ProjectFrameBounds" extendedState="6">
117
+ <option name="y" value="23" />
118
+ <option name="width" value="1680" />
119
+ <option name="height" value="1023" />
120
+ </component>
121
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
122
+ <component name="ProjectView">
123
+ <navigator currentView="ProjectPane" proportions="" version="1">
124
+ <flattenPackages />
125
+ <showMembers />
126
+ <showModules />
127
+ <showLibraryContents />
128
+ <hideEmptyPackages />
129
+ <abbreviatePackageNames />
130
+ <autoscrollToSource />
131
+ <autoscrollFromSource />
132
+ <sortByType />
133
+ <manualOrder />
134
+ <foldersAlwaysOnTop value="true" />
135
+ </navigator>
136
+ <panes>
137
+ <pane id="Scratches" />
138
+ <pane id="ProjectPane">
139
+ <subPane>
140
+ <expand>
141
+ <path>
142
+ <item name="ethereum_bip44" type="b2602c69:ProjectViewProjectNode" />
143
+ <item name="ethereum_bip44" type="462c0819:PsiDirectoryNode" />
144
+ </path>
145
+ <path>
146
+ <item name="ethereum_bip44" type="b2602c69:ProjectViewProjectNode" />
147
+ <item name="ethereum_bip44" type="462c0819:PsiDirectoryNode" />
148
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
149
+ </path>
150
+ <path>
151
+ <item name="ethereum_bip44" type="b2602c69:ProjectViewProjectNode" />
152
+ <item name="ethereum_bip44" type="462c0819:PsiDirectoryNode" />
153
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
154
+ <item name="ethereum_bip44" type="462c0819:PsiDirectoryNode" />
155
+ </path>
156
+ <path>
157
+ <item name="ethereum_bip44" type="b2602c69:ProjectViewProjectNode" />
158
+ <item name="ethereum_bip44" type="462c0819:PsiDirectoryNode" />
159
+ <item name="test" type="462c0819:PsiDirectoryNode" />
160
+ </path>
161
+ </expand>
162
+ <select />
163
+ </subPane>
164
+ </pane>
165
+ <pane id="Scope" />
166
+ </panes>
167
+ </component>
168
+ <component name="PropertiesComponent">
169
+ <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
170
+ <property name="WebServerToolWindowFactoryState" value="false" />
171
+ </component>
172
+ <component name="RunDashboard">
173
+ <option name="ruleStates">
174
+ <list>
175
+ <RuleState>
176
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
177
+ </RuleState>
178
+ <RuleState>
179
+ <option name="name" value="StatusDashboardGroupingRule" />
180
+ </RuleState>
181
+ </list>
182
+ </option>
183
+ </component>
184
+ <component name="RunManager" selected="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44">
185
+ <configuration name="Run test 'ethereum_bip44_test': ethereum_bip44" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
186
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
187
+ <module name="ethereum_bip44" />
188
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
189
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
190
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
191
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
192
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
193
+ <envs>
194
+ <env name="JRUBY_OPTS" value="-X+O" />
195
+ </envs>
196
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
197
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
198
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
199
+ <COVERAGE_PATTERN ENABLED="true">
200
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
201
+ </COVERAGE_PATTERN>
202
+ </EXTENSION>
203
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
204
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ethereum_bip44_test.rb" />
205
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
206
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
207
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
208
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
209
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
210
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
211
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
212
+ </configuration>
213
+ <configuration name="test_it_can_create_a_new_wallet: ethereum_bip44" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
214
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
215
+ <module name="ethereum_bip44" />
216
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
217
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
218
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
219
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
220
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
221
+ <envs>
222
+ <env name="JRUBY_OPTS" value="-X+O" />
223
+ </envs>
224
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
225
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
226
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
227
+ <COVERAGE_PATTERN ENABLED="true">
228
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
229
+ </COVERAGE_PATTERN>
230
+ </EXTENSION>
231
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
232
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ethereum_bip44_test.rb" />
233
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
234
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_it_can_create_a_new_wallet" />
235
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
236
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
237
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
238
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
239
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
240
+ </configuration>
241
+ <configuration name="test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
242
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
243
+ <module name="ethereum_bip44" />
244
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
245
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
246
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
247
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
248
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
249
+ <envs>
250
+ <env name="JRUBY_OPTS" value="-X+O" />
251
+ </envs>
252
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
253
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
254
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
255
+ <COVERAGE_PATTERN ENABLED="true">
256
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
257
+ </COVERAGE_PATTERN>
258
+ </EXTENSION>
259
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
260
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ethereum_bip44_test.rb" />
261
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
262
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_it_can_create_a_new_wallet_from_private_seed" />
263
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
264
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
265
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
266
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
267
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
268
+ </configuration>
269
+ <configuration name="test_it_can_create_a_new_wallet_from_public_seed: ethereum_bip44" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
270
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
271
+ <module name="ethereum_bip44" />
272
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
273
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
274
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
275
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
276
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
277
+ <envs>
278
+ <env name="JRUBY_OPTS" value="-X+O" />
279
+ </envs>
280
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
281
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
282
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
283
+ <COVERAGE_PATTERN ENABLED="true">
284
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
285
+ </COVERAGE_PATTERN>
286
+ </EXTENSION>
287
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
288
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ethereum_bip44_test.rb" />
289
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
290
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_it_can_create_a_new_wallet_from_public_seed" />
291
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
292
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
293
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
294
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
295
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
296
+ </configuration>
297
+ <configuration name="test_it_can_generate_same_address_from_different_way: ethereum_bip44" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
298
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
299
+ <module name="ethereum_bip44" />
300
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
301
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
302
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
303
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
304
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
305
+ <envs>
306
+ <env name="JRUBY_OPTS" value="-X+O" />
307
+ </envs>
308
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
309
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
310
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
311
+ <COVERAGE_PATTERN ENABLED="true">
312
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
313
+ </COVERAGE_PATTERN>
314
+ </EXTENSION>
315
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
316
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/ethereum_bip44_test.rb" />
317
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
318
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_it_can_generate_same_address_from_different_way" />
319
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
320
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
321
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
322
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
323
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
324
+ </configuration>
325
+ <list size="5">
326
+ <item index="0" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'ethereum_bip44_test': ethereum_bip44" />
327
+ <item index="1" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet: ethereum_bip44" />
328
+ <item index="2" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet_from_public_seed: ethereum_bip44" />
329
+ <item index="3" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44" />
330
+ <item index="4" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_generate_same_address_from_different_way: ethereum_bip44" />
331
+ </list>
332
+ <recent_temporary>
333
+ <list size="5">
334
+ <item index="0" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44" />
335
+ <item index="1" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_generate_same_address_from_different_way: ethereum_bip44" />
336
+ <item index="2" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'ethereum_bip44_test': ethereum_bip44" />
337
+ <item index="3" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet_from_public_seed: ethereum_bip44" />
338
+ <item index="4" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_can_create_a_new_wallet: ethereum_bip44" />
339
+ </list>
340
+ </recent_temporary>
341
+ </component>
342
+ <component name="ShelveChangesManager" show_recycled="false">
343
+ <option name="remove_strategy" value="false" />
344
+ </component>
345
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
346
+ <component name="TaskManager">
347
+ <task active="true" id="Default" summary="Default task">
348
+ <changelist id="6adfe41e-75d6-4c9f-94a7-6cf45e8f0229" name="Default" comment="" />
349
+ <created>1509628188086</created>
350
+ <option name="number" value="Default" />
351
+ <option name="presentableId" value="Default" />
352
+ <updated>1509628188086</updated>
353
+ <workItem from="1509628189826" duration="7015000" />
354
+ </task>
355
+ <servers />
356
+ </component>
357
+ <component name="TestHistory">
358
+ <history-entry file="Run_test_'ethereum_bip44_test'__ethereum_bip44 - 2017.11.02 at 22h 36m 06s.xml">
359
+ <configuration name="Run test 'ethereum_bip44_test': ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
360
+ </history-entry>
361
+ <history-entry file="Run_test_'ethereum_bip44_test'__ethereum_bip44 - 2017.11.02 at 22h 36m 19s.xml">
362
+ <configuration name="Run test 'ethereum_bip44_test': ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
363
+ </history-entry>
364
+ <history-entry file="Run_test_'ethereum_bip44_test'__ethereum_bip44 - 2017.11.02 at 22h 36m 26s.xml">
365
+ <configuration name="Run test 'ethereum_bip44_test': ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
366
+ </history-entry>
367
+ <history-entry file="Run_test_'ethereum_bip44_test'__ethereum_bip44 - 2017.11.03 at 13h 39m 13s.xml">
368
+ <configuration name="Run test 'ethereum_bip44_test': ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
369
+ </history-entry>
370
+ <history-entry file="test_it_can_create_a_new_wallet__ethereum_bip44 - 2017.11.03 at 13h 30m 11s.xml">
371
+ <configuration name="test_it_can_create_a_new_wallet: ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
372
+ </history-entry>
373
+ <history-entry file="test_it_can_create_a_new_wallet_from_private_seed__ethereum_bip44 - 2017.11.03 at 13h 34m 35s.xml">
374
+ <configuration name="test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
375
+ </history-entry>
376
+ <history-entry file="test_it_can_create_a_new_wallet_from_private_seed__ethereum_bip44 - 2017.11.03 at 13h 54m 56s.xml">
377
+ <configuration name="test_it_can_create_a_new_wallet_from_private_seed: ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
378
+ </history-entry>
379
+ <history-entry file="test_it_can_create_a_new_wallet_from_public_seed__ethereum_bip44 - 2017.11.03 at 13h 30m 21s.xml">
380
+ <configuration name="test_it_can_create_a_new_wallet_from_public_seed: ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
381
+ </history-entry>
382
+ <history-entry file="test_it_can_generate_same_address_from_different_way__ethereum_bip44 - 2017.11.03 at 13h 52m 22s.xml">
383
+ <configuration name="test_it_can_generate_same_address_from_different_way: ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
384
+ </history-entry>
385
+ <history-entry file="test_it_can_generate_same_address_from_different_way__ethereum_bip44 - 2017.11.03 at 13h 54m 17s.xml">
386
+ <configuration name="test_it_can_generate_same_address_from_different_way: ethereum_bip44" configurationId="TestUnitRunConfigurationType" />
387
+ </history-entry>
388
+ </component>
389
+ <component name="TimeTrackingManager">
390
+ <option name="totallyTimeSpent" value="7015000" />
391
+ </component>
392
+ <component name="ToolWindowManager">
393
+ <frame x="0" y="23" width="1680" height="1023" extended-state="6" />
394
+ <layout>
395
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
396
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
397
+ <window_info id="Cargo" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
398
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
399
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
400
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3297414" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
401
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
402
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
403
+ <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3297414" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
404
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
405
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
406
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
407
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
408
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
409
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
410
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
411
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
412
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
413
+ </layout>
414
+ <layout-to-restore>
415
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
416
+ <window_info id="Cargo" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
417
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
418
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
419
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
420
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
421
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
422
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3297414" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
423
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
424
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3297414" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
425
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
426
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="combo" />
427
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
428
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
429
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
430
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
431
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
432
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
433
+ </layout-to-restore>
434
+ </component>
435
+ <component name="TypeScriptGeneratedFilesManager">
436
+ <option name="version" value="1" />
437
+ </component>
438
+ <component name="VcsContentAnnotationSettings">
439
+ <option name="myLimit" value="2678400000" />
440
+ </component>
441
+ <component name="XDebuggerManager">
442
+ <breakpoint-manager />
443
+ <watches-manager />
444
+ </component>
445
+ <component name="editorHistoryManager">
446
+ <entry file="file://$PROJECT_DIR$/lib/ethereum_bip44/version.rb">
447
+ <provider selected="true" editor-type-id="text-editor">
448
+ <state relative-caret-position="0">
449
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
450
+ <folding />
451
+ </state>
452
+ </provider>
453
+ </entry>
454
+ <entry file="file://$PROJECT_DIR$/lib/ethereum_bip44/utils.rb">
455
+ <provider selected="true" editor-type-id="text-editor">
456
+ <state relative-caret-position="19">
457
+ <caret line="1" column="14" lean-forward="false" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="14" />
458
+ <folding />
459
+ </state>
460
+ </provider>
461
+ </entry>
462
+ <entry file="file://$PROJECT_DIR$/test/ethereum_bip44_test.rb">
463
+ <provider selected="true" editor-type-id="text-editor">
464
+ <state relative-caret-position="418">
465
+ <caret line="22" column="29" lean-forward="false" selection-start-line="22" selection-start-column="29" selection-end-line="22" selection-end-column="29" />
466
+ <folding />
467
+ </state>
468
+ </provider>
469
+ </entry>
470
+ <entry file="file://$PROJECT_DIR$/lib/ethereum_bip44.rb">
471
+ <provider selected="true" editor-type-id="text-editor">
472
+ <state relative-caret-position="385">
473
+ <caret line="56" column="6" lean-forward="false" selection-start-line="56" selection-start-column="6" selection-end-line="56" selection-end-column="6" />
474
+ <folding />
475
+ </state>
476
+ </provider>
477
+ </entry>
478
+ <entry file="file://$PROJECT_DIR$/ethereum_bip44.gemspec">
479
+ <provider selected="true" editor-type-id="text-editor">
480
+ <state relative-caret-position="395">
481
+ <caret line="21" column="30" lean-forward="true" selection-start-line="21" selection-start-column="30" selection-end-line="21" selection-end-column="30" />
482
+ <folding />
483
+ </state>
484
+ </provider>
485
+ </entry>
486
+ <entry file="file://$PROJECT_DIR$/README.md">
487
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
488
+ <state split_layout="FIRST">
489
+ <first_editor relative-caret-position="349">
490
+ <caret line="26" column="8" lean-forward="false" selection-start-line="26" selection-start-column="8" selection-end-line="26" selection-end-column="8" />
491
+ <folding />
492
+ </first_editor>
493
+ <second_editor />
494
+ </state>
495
+ </provider>
496
+ </entry>
497
+ </component>
498
+ </project>
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.15.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at wuminzhe@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in ethereum_bip44.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 wuminzhe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,38 @@
1
+ # EthereumBip44 for ruby
2
+
3
+ A ruby library to generate Ethereum addresses from a hierarchical deterministic wallet according to the [BIP44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) standard.
4
+
5
+ Internally it uses [btcruby](https://github.com/oleganza/btcruby) for the deterministic private and public keys which allows to use many additional features like deriving Ethereum address from mnemonic backups (BIP32).
6
+
7
+ This library is inspired by the js library [coinme/ethereum-bip44](https://github.com/coinme/ethereum-bip44), I followed its design.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'ethereum_bip44'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install ethereum_bip44
24
+
25
+ ## Usage
26
+
27
+ See test
28
+
29
+ TODO: Write usage instructions here
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/wuminzhe/ethereum_bip44. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
34
+
35
+ ## License
36
+
37
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
38
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ethereum_bip44"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "ethereum_bip44/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ethereum_bip44"
8
+ spec.version = EthereumBip44::VERSION
9
+ spec.authors = ["wuminzhe"]
10
+ spec.email = ["wuminzhe@gmail.com"]
11
+
12
+ spec.summary = "A ruby library to generate Ethereum addresses from a hierarchical deterministic wallet according to the BIP44 standard."
13
+ spec.description = "A ruby library to generate Ethereum addresses from a hierarchical deterministic wallet according to the BIP44 standard."
14
+ spec.homepage = "https://github.com/wuminzhe/ethereum-bip44.rb"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.15"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "minitest", "~> 5.0"
27
+
28
+ spec.add_dependency "btcruby", "~> 1.7"
29
+ spec.add_dependency "ecdsa", "~> 1.2.0"
30
+ spec.add_dependency "digest-sha3", "~> 1.1.0"
31
+ spec.add_dependency "rlp", "~> 0.7.3"
32
+ end
@@ -0,0 +1,60 @@
1
+ require "ethereum_bip44/version"
2
+ require 'btcruby'
3
+ require 'ecdsa'
4
+ require 'digest/sha3'
5
+ require 'rlp'
6
+ require 'ethereum_bip44/utils'
7
+
8
+ module EthereumBip44
9
+ class Wallet
10
+ def self.from_public_seed(seed)
11
+ EthereumBip44::Wallet.new(BTC::Keychain.new(xpub: seed))
12
+ end
13
+
14
+ def self.from_private_seed(seed)
15
+ EthereumBip44::Wallet.new(BTC::Keychain.new(xprv: seed))
16
+ end
17
+
18
+ def initialize(keychain)
19
+ @parts = [
20
+ "44'", # bip 44
21
+ "60'", # coin
22
+ "0'", # wallet
23
+ "0" # 0 - public, 1 = private
24
+ # index
25
+ ]
26
+ @keychain = keychain
27
+ end
28
+
29
+ def derive(path)
30
+ @keychain.derived_keychain(path)
31
+ end
32
+
33
+
34
+ def get_address(index)
35
+ # get the public key of index
36
+ parts = @parts[@keychain.depth..-1]
37
+ path = 'm/' + (!parts.empty? ? parts.join('/') + '/' : '') + index.to_s
38
+ derived = @keychain.derived_keychain(path)
39
+ public_key_string = derived.key.public_key
40
+
41
+ # translate the public key to ethereum public key
42
+ group = ECDSA::Group::Secp256k1
43
+ public_key = ECDSA::Format::PointOctetString.decode(public_key_string, group) # a point
44
+ ethereum_public = public_key.x.to_s(16) + public_key.y.to_s(16)
45
+
46
+ # get the address from the ethereum public key
47
+ bytes = Utils.hex_to_bin(ethereum_public)
48
+ address_bytes = Digest::SHA3.new(256).digest(bytes)[-20..-1]
49
+ address = Utils.bin_to_hex(address_bytes)
50
+ Utils.prefix_hex(address)
51
+ end
52
+
53
+ def get_private_key(index)
54
+ parts = @parts[@keychain.depth..-1]
55
+ path = 'm/' + (!parts.empty? ? parts.join('/') + '/' : '') + index.to_s
56
+ derived = @keychain.derived_keychain(path)
57
+ Utils.bin_to_hex(derived.key.private_key)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,15 @@
1
+ module EthereumBip44
2
+ module Utils
3
+ def self.hex_to_bin(string)
4
+ RLP::Utils.decode_hex string
5
+ end
6
+
7
+ def self.bin_to_hex(string)
8
+ RLP::Utils.encode_hex string
9
+ end
10
+
11
+ def self.prefix_hex(hex)
12
+ hex.match(/\A0x/) ? hex : "0x#{hex}"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module EthereumBip44
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ethereum_bip44
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - wuminzhe
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: btcruby
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.7'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ecdsa
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: digest-sha3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.1.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rlp
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.7.3
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.7.3
111
+ description: A ruby library to generate Ethereum addresses from a hierarchical deterministic
112
+ wallet according to the BIP44 standard.
113
+ email:
114
+ - wuminzhe@gmail.com
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".idea/ethereum_bip44.iml"
121
+ - ".idea/misc.xml"
122
+ - ".idea/modules.xml"
123
+ - ".idea/vcs.xml"
124
+ - ".idea/workspace.xml"
125
+ - ".travis.yml"
126
+ - CODE_OF_CONDUCT.md
127
+ - Gemfile
128
+ - LICENSE.txt
129
+ - README.md
130
+ - Rakefile
131
+ - bin/console
132
+ - bin/setup
133
+ - ethereum_bip44.gemspec
134
+ - lib/ethereum_bip44.rb
135
+ - lib/ethereum_bip44/utils.rb
136
+ - lib/ethereum_bip44/version.rb
137
+ homepage: https://github.com/wuminzhe/ethereum-bip44.rb
138
+ licenses:
139
+ - MIT
140
+ metadata: {}
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.6.13
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: A ruby library to generate Ethereum addresses from a hierarchical deterministic
161
+ wallet according to the BIP44 standard.
162
+ test_files: []