Created
April 19, 2019 19:56
-
-
Save olemis/8a1eeab8c9ab871bd290746d2e5e8e76 to your computer and use it in GitHub Desktop.
Output of https://gist.github.com/olemis/a1a245e1fcd019ca6aa23bb4b34884d4 for https://github.com/skycoin/hardware-wallet/issues/188
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git rev-parse HEAD | |
585aaff97df630e5d70bee9444c1f9aff8c3dcc8 | |
$ git status | |
On branch stdevStark_t105_devChgRmPin | |
Your branch is up to date with 'simelo/stdevStark_t105_devChgRmPin'. | |
Untracked files: | |
(use "git add <file>..." to include in what will be committed) | |
ex1.js | |
nothing added to commit but untracked files present (use "git add" to track) | |
$ node ex1.js | |
Device Open | |
Sending data <Buffer 3f 23 23 00 04 00 00 00 02 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 26 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_ButtonRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
ButtonRequest! | |
Device Open | |
Sending data <Buffer 3f 23 23 00 1b 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
^C | |
bash-3.2$ node ex1.js | |
bash-3.2$ node ex1.js | |
Device Open | |
Sending data <Buffer 3f 23 23 00 04 00 00 00 02 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 26 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_ButtonRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
ButtonRequest! | |
Device Open | |
Sending data <Buffer 3f 23 23 00 1b 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 18 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_PinMatrixRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
User hit a button | |
Device Close | |
pinCodeMatrixCallback kind: 18 MessageType_PinMatrixRequest | |
Enter pin : | |
476 | |
Device Open | |
Sending data <Buffer 3f 23 23 00 13 00 00 00 05 0a 03 34 37 36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 18 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_PinMatrixRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
pinCodeMatrixCallback kind: 18 MessageType_PinMatrixRequest | |
Enter pin : | |
274 | |
Device Open | |
Sending data <Buffer 3f 23 23 00 13 00 00 00 05 0a 03 32 37 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?## | |
PIN changed from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 13 | |
msgid slice: Uint8Array [ 0, 2 ] | |
Slice: Uint8Array [ 0, 0, 0, 13 ] | |
Received header msg this.kind: MessageType_Success size: 13 buffer lenght: 64 | |
Remaining bytesToGet: -42 | |
Device Close | |
pinCodeMatrixCallback kind: 2 MessageType_Success | |
Success message code undefined message: PIN changed | |
Device Open | |
Sending data <Buffer 3f 23 23 00 37 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?##� | |
Skycoin Foundation2AC2BD8D1F6550E3452C58B7A8@RAC2 from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 134 | |
msgid slice: Uint8Array [ 0, 17 ] | |
Slice: Uint8Array [ 0, 0, 0, 134 ] | |
Received header msg this.kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: 79 | |
server got: | |
?BD8D1F6550E3452C58B7A`r �x��A�%���-�M$�zD | |
�N�bF��%�#�U&{�� from 127.0.0.1:21324 | |
Received data msg kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: 15 | |
server got: | |
?��1��� from 127.0.0.1:21324 | |
Received data msg kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: -49 | |
Device Close | |
Features message: vendor: Skycoin Foundation majorVersion: 0 minorVersion: 0 patchVersion: 0 bootloaderMode: false deviceId: AC2BD8D1F6550E3452C58B7A pinProtection: true passphraseProtection: false language: label: AC2BD8D1F6550E3452C58B7A initialized: false bootloaderHash: Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ] pinCached: false passphraseCached: false firmwarePresent: false needsBackup: false model: 1 fwMajor: 1 fwMinor: 7 fwPatch: 0 fwVendor: fwVendorKeys: <Buffer > unfinishedBackup: false | |
Fetures after 1st pin Features { | |
vendor: 'Skycoin Foundation', | |
deviceId: 'AC2BD8D1F6550E3452C58B7A', | |
pinProtection: true, | |
passphraseProtection: false, | |
label: 'AC2BD8D1F6550E3452C58B7A', | |
initialized: false, | |
bootloaderHash: | |
Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ], | |
pinCached: false, | |
passphraseCached: false, | |
needsBackup: false, | |
model: '1', | |
fwMajor: 1, | |
fwMinor: 7, | |
fwPatch: 0 } | |
Features { | |
vendor: 'Skycoin Foundation', | |
deviceId: 'AC2BD8D1F6550E3452C58B7A', | |
pinProtection: true, | |
passphraseProtection: false, | |
label: 'AC2BD8D1F6550E3452C58B7A', | |
initialized: false, | |
bootloaderHash: | |
Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ], | |
pinCached: false, | |
passphraseCached: false, | |
needsBackup: false, | |
model: '1', | |
fwMajor: 1, | |
fwMinor: 7, | |
fwPatch: 0 } | |
Device Open | |
Sending data <Buffer 3f 23 23 00 04 00 00 00 02 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 26 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_ButtonRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
ButtonRequest! | |
Device Open | |
Sending data <Buffer 3f 23 23 00 1b 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 18 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_PinMatrixRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
User hit a button | |
Device Close | |
pinCodeMatrixCallback kind: 18 MessageType_PinMatrixRequest | |
Enter pin : | |
571 | |
Device Open | |
Sending data <Buffer 3f 23 23 00 13 00 00 00 05 0a 03 35 37 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 18 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_PinMatrixRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
pinCodeMatrixCallback kind: 18 MessageType_PinMatrixRequest | |
Enter pin : | |
462 | |
Device Open | |
Sending data <Buffer 3f 23 23 00 13 00 00 00 05 0a 03 34 36 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 18 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_PinMatrixRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
pinCodeMatrixCallback kind: 18 MessageType_PinMatrixRequest | |
Enter pin : | |
123 | |
Device Open | |
Sending data <Buffer 3f 23 23 00 13 00 00 00 05 0a 03 31 32 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?## | |
PIN changed from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 13 | |
msgid slice: Uint8Array [ 0, 2 ] | |
Slice: Uint8Array [ 0, 0, 0, 13 ] | |
Received header msg this.kind: MessageType_Success size: 13 buffer lenght: 64 | |
Remaining bytesToGet: -42 | |
Device Close | |
pinCodeMatrixCallback kind: 2 MessageType_Success | |
Success message code undefined message: PIN changed | |
Device Open | |
Sending data <Buffer 3f 23 23 00 37 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?##� | |
Skycoin Foundation2AC2BD8D1F6550E3452C58B7A8@RAC2 from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 134 | |
msgid slice: Uint8Array [ 0, 17 ] | |
Slice: Uint8Array [ 0, 0, 0, 134 ] | |
Received header msg this.kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: 79 | |
server got: | |
?BD8D1F6550E3452C58B7A`r �x��A�%���-�M$�zD | |
�N�bF��%�#�U&{�� from 127.0.0.1:21324 | |
Received data msg kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: 15 | |
server got: | |
?��1��� from 127.0.0.1:21324 | |
Received data msg kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: -49 | |
Device Close | |
Features message: vendor: Skycoin Foundation majorVersion: 0 minorVersion: 0 patchVersion: 0 bootloaderMode: false deviceId: AC2BD8D1F6550E3452C58B7A pinProtection: true passphraseProtection: false language: label: AC2BD8D1F6550E3452C58B7A initialized: false bootloaderHash: Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ] pinCached: false passphraseCached: false firmwarePresent: false needsBackup: false model: 1 fwMajor: 1 fwMinor: 7 fwPatch: 0 fwVendor: fwVendorKeys: <Buffer > unfinishedBackup: false | |
Fetures after 2nd pin Features { | |
vendor: 'Skycoin Foundation', | |
deviceId: 'AC2BD8D1F6550E3452C58B7A', | |
pinProtection: true, | |
passphraseProtection: false, | |
label: 'AC2BD8D1F6550E3452C58B7A', | |
initialized: false, | |
bootloaderHash: | |
Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ], | |
pinCached: false, | |
passphraseCached: false, | |
needsBackup: false, | |
model: '1', | |
fwMajor: 1, | |
fwMinor: 7, | |
fwPatch: 0 } | |
Device Open | |
Sending data <Buffer 3f 23 23 00 04 00 00 00 02 0a 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 26 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_ButtonRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
Device Close | |
ButtonRequest! | |
Device Open | |
Sending data <Buffer 3f 23 23 00 1b 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?# from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 2 | |
msgid slice: Uint8Array [ 0, 18 ] | |
Slice: Uint8Array [ 0, 0, 0, 2 ] | |
Received header msg this.kind: MessageType_PinMatrixRequest size: 2 buffer lenght: 64 | |
Remaining bytesToGet: -53 | |
User hit a button | |
Device Close | |
pinCodeMatrixCallback kind: 18 MessageType_PinMatrixRequest | |
Enter pin : | |
318 | |
Device Open | |
Sending data <Buffer 3f 23 23 00 13 00 00 00 05 0a 03 33 31 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?## | |
PIN removed from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 13 | |
msgid slice: Uint8Array [ 0, 2 ] | |
Slice: Uint8Array [ 0, 0, 0, 13 ] | |
Received header msg this.kind: MessageType_Success size: 13 buffer lenght: 64 | |
Remaining bytesToGet: -42 | |
Device Close | |
pinCodeMatrixCallback kind: 2 MessageType_Success | |
Success message code undefined message: PIN removed | |
Device Open | |
Sending data <Buffer 3f 23 23 00 37 00 00 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 14 more bytes> 64 | |
Sending data 64 | |
server got: | |
?##� | |
Skycoin Foundation2AC2BD8D1F6550E3452C58B7A8@RAC2 from 127.0.0.1:21324 | |
Received data of length: 64 | |
That message says its size is: 134 | |
msgid slice: Uint8Array [ 0, 17 ] | |
Slice: Uint8Array [ 0, 0, 0, 134 ] | |
Received header msg this.kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: 79 | |
server got: | |
?BD8D1F6550E3452C58B7A`r �x��A�%���-�M$�zD | |
�N�bF��%�#�U&{�� from 127.0.0.1:21324 | |
Received data msg kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: 15 | |
server got: | |
?��1��� from 127.0.0.1:21324 | |
Received data msg kind: MessageType_Features size: 134 buffer lenght: 192 | |
Remaining bytesToGet: -49 | |
Device Close | |
Features message: vendor: Skycoin Foundation majorVersion: 0 minorVersion: 0 patchVersion: 0 bootloaderMode: false deviceId: AC2BD8D1F6550E3452C58B7A pinProtection: false passphraseProtection: false language: label: AC2BD8D1F6550E3452C58B7A initialized: false bootloaderHash: Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ] pinCached: false passphraseCached: false firmwarePresent: false needsBackup: false model: 1 fwMajor: 1 fwMinor: 7 fwPatch: 0 fwVendor: fwVendorKeys: <Buffer > unfinishedBackup: false | |
Fetures after removing pin Features { | |
vendor: 'Skycoin Foundation', | |
deviceId: 'AC2BD8D1F6550E3452C58B7A', | |
pinProtection: false, | |
passphraseProtection: false, | |
label: 'AC2BD8D1F6550E3452C58B7A', | |
initialized: false, | |
bootloaderHash: | |
Uint8Array [ | |
147, | |
120, | |
242, | |
214, | |
65, | |
190, | |
37, | |
177, | |
217, | |
198, | |
45, | |
156, | |
77, | |
36, | |
156, | |
122, | |
68, | |
10, | |
211, | |
78, | |
255, | |
98, | |
70, | |
217, | |
207, | |
37, | |
214, | |
35, | |
167, | |
85, | |
38, | |
123 ], | |
pinCached: false, | |
passphraseCached: false, | |
needsBackup: false, | |
model: '1', | |
fwMajor: 1, | |
fwMinor: 7, | |
fwPatch: 0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment