js: getDefaultKey and GenerateKey improvements
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Tue, 19 Jun 2018 07:26:01 +0000 (09:26 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Tue, 19 Jun 2018 07:26:01 +0000 (09:26 +0200)
commit780f7880c6598d4532354b348d7bd74026d162f4
tree56ce4465927e76a7e0eb9bd0653973b11315c374
parent3cd428ba442f43e470b977e27e18ff52567baba5
js: getDefaultKey and GenerateKey improvements

--

* src/Keyring.js: added more options for key generation.

* src/Key.js: GetDefaultKey now relies on the info associated with the
  key, as the approach of relying on a secret subkey did not work as
  intended
* DemoExtension: Added a button for retrieval of the subkey, to test
  this functionality.
lang/js/DemoExtension/maindemo.js
lang/js/src/Key.js
lang/js/src/Keyring.js