Function eosio_sys::recover_key

source ·
pub unsafe extern "C" fn recover_key(
    digest: *const capi_checksum256,
    sig: *const c_char,
    siglen: usize,
    pub_: *mut c_char,
    publen: usize
) -> c_int
Expand description

Calculates the public key used for a given signature and hash used to create a message. @brief Calculates the public key used for a given signature and hash used to create a message.

@param digest - Hash used to create a message @param sig - Signature @param siglen - Signature length @param pub - Public key @param publen - Public key length

Example:

@code @endcode