{"action":"opened","issue":{"url":"https://api.github.com/repos/MuxZeroNet/leaflet/issues/2","repository_url":"https://api.github.com/repos/MuxZeroNet/leaflet","labels_url":"https://api.github.com/repos/MuxZeroNet/leaflet/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/MuxZeroNet/leaflet/issues/2/comments","events_url":"https://api.github.com/repos/MuxZeroNet/leaflet/issues/2/events","html_url":"https://github.com/MuxZeroNet/leaflet/issues/2","id":305800832,"number":2,"title":"ValueError: Secret signing key truncated 20 < 32","user":{"login":"l-n-s","id":13422305,"avatar_url":"https://avatars2.githubusercontent.com/u/13422305?v=4","gravatar_id":"","url":"https://api.github.com/users/l-n-s","html_url":"https://github.com/l-n-s","followers_url":"https://api.github.com/users/l-n-s/followers","following_url":"https://api.github.com/users/l-n-s/following{/other_user}","gists_url":"https://api.github.com/users/l-n-s/gists{/gist_id}","starred_url":"https://api.github.com/users/l-n-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l-n-s/subscriptions","organizations_url":"https://api.github.com/users/l-n-s/orgs","repos_url":"https://api.github.com/users/l-n-s/repos","events_url":"https://api.github.com/users/l-n-s/events{/privacy}","received_events_url":"https://api.github.com/users/l-n-s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T04:44:09Z","updated_at":"2018-03-16T04:44:09Z","closed_at":null,"author_association":"NONE","body":"Trying to initiate a `leaflet.samtools.Dest` object from SAM reply throws an exception:\r\n\r\n```\r\n\r\n>>> leaflet.samtools.Dest(ddd, \"base64\", private=True, sig_type=7)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/user/lab/leaflet/leaflet/samtools.py\", line 348, in __init__\r\n    self.keys_cert = self.__class__.read_keys_cert(keyfile)\r\n  File \"/home/user/lab/leaflet/leaflet/samtools.py\", line 406, in read_signing_secret_key\r\n    secret_signing = cls._read(keyfile, key_len, throw='Secret signing key truncated')\r\n  File \"/home/user/lab/leaflet/leaflet/samtools.py\", line 384, in _read\r\n    raise ValueError(throw + ' %d < %d' % (len(data), read_len))\r\nValueError: Secret signing key truncated 20 < 32\r\n\r\n```\r\n\r\nThou it says in [javadoc](http://docs.i2p2.de/javadoc/net/i2p/data/PrivateKeyFile.html) the following:\r\n\r\n>Destination (387 bytes if no certificate, otherwise longer) - Public key (256 bytes) - Signing Public key (128 bytes) - Cert. type (1 byte) - Cert. length (2 bytes) - Certificate if length != 0 - Private key (256 bytes) - **Signing Private key (20 bytes)** Total 663 bytes "}}
{"actor":{"display_login":"l-n-s"}}