Module Pk.Signing
type t={buf : char Ctypes.ptr;pk_sgn : C.Types.PkSigning.t Ctypes.ptr;pubkey : string;}
val clear : C.Types.PkSigning.t Ctypes_static.ptr -> (int, [> `OlmError ]) Core.resultclear pk_sgnClear memory backing the given
pk_sgnpointer.
val check_error : t -> Unsigned.size_t -> (int, [> OlmError.t ]) Core.resultcheck_error t retCheck whether return code
retis equal to `olm_error()` ( -1 ), returning the return value as an int if not, and the `last_error` from the pk signing objecttif so.
val alloc : unit -> talloc ()Allocate an
C.Types.Pk.Signing.tand return the pointers in at.
val create : string -> (t, [> OlmError.t | `ValueError of string ]) Core.resultcreate seedCreate a new PK signing object with the provided
seedwhich will used as the private key for signing. Provided seed must have the same length as the seeds generated bygenerate_seed ().
val sign : t -> string -> (string, [> OlmError.t ]) Core.resultsign t msgSigns the message
msgwith the pk signingt, returning the signature.