Conex_nocrypto.NC_SSourceval generate :
?bits:int ->
Conex_utils.Uint.t ->
unit ->
Conex_resource.Key.privgenerate ?bits created () generates a bits sized private key.
val pub_of_priv :
Conex_resource.Key.priv ->
(Conex_resource.Key.t, string) resultpub_of_priv priv extracts the public key from the private.
val bits : Conex_resource.Key.t -> (int, string) resultbits pub returns the bit size of the public key.
val sign :
Conex_utils.Uint.t ->
Conex_resource.Author.t ->
Conex_resource.Key.priv ->
(Conex_resource.Author.t, string) resultsign created author priv uses Conex_resource.Author.prep_sig to prepare author (incrementing counter, moving queued resource to signed). Conex_resource.Signature.wire is used to produce the to-be-signed data. This includes the author name, and the signature algorithm (at the moment RSA-PSS-SHA256).