package tezos-hacl-glue
This function does not check that the resulting pk is valid. It is slightly faster than pk_of_bytes but should only be used to deserialize bytes that were serialized from a pk. E.g. the pks in the storage of the protocol.
keypair
generates both a secret key and its corresponding public key
val to_bytes : _ key -> Stdlib.Bytes.t
to_bytes key
returns the contents of the key. For P-256 public keys, it returns the compressed form (see hacl.ml for more details)
val blit_to_bytes : _ key -> ?pos:int -> Stdlib.Bytes.t -> unit
blit_to_bytes key ?pos buf
copies all of the bytes of key
into buf
starting at position pos
. As above, P-256 public keys are written in compressed form.
sign sk msg
returns the signature of msg
with sk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>