Kcl.unbox

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

unbox(packet, nonce, state)

View Source
Link to this function

unbox(packet, nonce, our_private, their_public)

View Source

Specs

unbox(binary(), nonce(), key(), key()) :: {binary(), Kcl.State.t()} | :error

unbox an authenticated packet

Returns :error when the packet contents cannot be authenticated, otherwise the decrypted payload and updated state.