You're seeing just the function sign, go back to Kcl module for more information.
Link to this function

sign(message, secret_key, public_key \\ nil)

View Source


sign(binary(), key(), key()) :: signature()

sign a message

If only the secret key is provided, the public key will be derived therefrom. This can add significant overhead to the signing operation.