syn.crypt.sign

Namespaces

Functions

keygen

(string, string) syn.crypt.sign.keygen()

Generates a new public & secret keypair, and returns it in that order.

NOTE; These keypairs are NOT compatible with the ones used for the encryption library above.

derive

(string, string) syn.crypt.sign.derive(key: string)

TODO

create

string syn.crypt.sign.create(data: string, secret_key: string)

Creates a signature for data with the secret_key, and returns the signature combined with the message.

open

string syn.crypt.sign.open(data: string, public_key: string)

Verifies the data passed in with the public_key, and returns the original message if the verification succeeds. Errors if verification fails.