1
0
forked from QPQ-AG/enoise

More documentation and some cleanup

This commit is contained in:
Hans Svensson
2018-03-08 12:07:00 +01:00
parent 9a9d9f47b8
commit 8d47669d68
9 changed files with 63 additions and 35 deletions
+1
View File
@@ -59,6 +59,7 @@ pubkey(#kp{ pub = P }) ->
P.
%% @doc Accessor function - return the secret key of the key pair.
%% This function will throw an error if the key pair is "public only".
-spec seckey(KeyPair :: keypair()) -> binary().
seckey(#kp{ sec = undefined }) ->
error(keypair_is_public_only);