Module utils

Source

Functions§

decode_digest
decode_key
don’t forget to zeroize the string later on
decode_overlayid
decode_priv_key
decode_sym_key
derive_key
dh_pubkey_array_from_ed_pubkey_slice
dh_pubkey_from_ed_pubkey_slice
display_timestamp
displays the NextGraph Timestamp in UTC.
display_timestamp_local
displays the NextGraph Timestamp in local time for the history (JS)
ed_keypair_from_priv_bytes
ed_privkey_to_ed_pubkey
encrypt_in_place
from_ed_privkey_to_dh_privkey
generate_keypair
generate_null_ed_keypair
keypair_from_ed
now_timestamp
returns the NextGraph Timestamp of now.
pubkey_privkey_to_keypair
random_key
use with caution. it should be embedded in a zeroize struct in order to be safe
sign
timestamp_after
returns a new NextGraph Timestamp equivalent to the duration after now.
verify