Skip to content

Conversation

douglasbakkum
Copy link
Member

Allow using an ephemeral session key such that the client app does not need to store the device password for either the standard or hidden wallet. This also provides some backward privacy. The session key is optional, such that the PR is backward compatible with the existing desktop app that does not use a session key.

API

command
{"session" : "set"}

reply
{"session" : "__password__"}
The returned session password is random and in hexadecimal format. It is valid until the device is unplugged or if "set" again or turned "off" (see below). Access through the standard or hidden password is disabled while a session password is activated.

--

command
{"session" : "off"}

reply
{"session" : "success"}
Resumes access through the standard or hidden password.

@douglasbakkum douglasbakkum merged commit a18f94f into BitBoxSwiss:master Jan 2, 2018
douglasbakkum pushed a commit that referenced this pull request Jan 2, 2018
a18f94f add session key (djb)
aef8b33 keep standard and hidden wallet passwords in unit tests independent of hww passwords (djb)
@douglasbakkum douglasbakkum deleted the 171227/sessionkey branch February 24, 2018 23:40
@douglasbakkum douglasbakkum restored the 171227/sessionkey branch February 24, 2018 23:40
@douglasbakkum douglasbakkum deleted the 171227/sessionkey branch February 25, 2018 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant