Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Parse an ECDSA signature in compact (64 bytes) format. Buffer must be 64 bytes long.
write_compact ctx buf ?pos signature
writes signature
at buf
starting at pos
in compact format.
write_der ctx buf ?pos signature
writes signature
at buf
starting at pos
in DER format.
Create an ECDSA signature. The created signature is always in lower-S form. Buffer must contain a 32-byte message hash.
val write_sign :
Context.t ->
seckey:Secret.t ->
outbuf:buffer ->
?outpos:int ->
inbuf:buffer ->
?inpos:int ->
unit ->
int
write_sign ctx ~seckey ~outbuf ~outpos ~inbuf ~inpos ()
signs the message at inbuf
starting at inpos
and writes the signature at outbuf
starting at outpos
using seckey
, and returns the number of bytes written.