silicon v0.1.0 Silicon.Secp256k1 View Source
A wrapper of libsecp256k1
Link to this section Summary
Link to this section Types
Link to this type
compression()
View Source
compression()
View Source
compression() :: :compressed | :uncompressed
compression() :: :compressed | :uncompressed
Link to this type
privkey()
View Source
privkey()
View Source
privkey() :: binary()
privkey() :: binary()
Link to this type
pubkey()
View Source
pubkey()
View Source
pubkey() :: binary()
pubkey() :: binary()
Link to this type
recovery_id()
View Source
recovery_id()
View Source
recovery_id() :: integer()
recovery_id() :: integer()
Link to this type
signature()
View Source
signature()
View Source
signature() :: binary()
signature() :: binary()
Link to this section Functions
Link to this function
compress_pubkey(arg1) View Source
Link to this function
decompress_pubkey(pubkey) View Source
Link to this function
derive_pubkey(privkey, compression)
View Source
derive_pubkey(privkey, compression)
View Source
derive_pubkey(privkey(), compression()) :: {:ok, pubkey()} | {:error, term()}
derive_pubkey(privkey(), compression()) :: {:ok, pubkey()} | {:error, term()}
Link to this function
key_pair() View Source
Link to this function
privkey_tweak_add(privkey, tweak) View Source
Link to this function
privkey_tweak_mul(privkey, tweak) View Source
Link to this function
pubkey_tweak_add(pubkey, tweak) View Source
Link to this function
pubkey_tweak_mul(pubkey, tweak) View Source
Link to this function
recover_compact(data, signature, recovery_id, compression)
View Source
recover_compact(data, signature, recovery_id, compression)
View Source
recover_compact(binary(), signature(), recovery_id(), compression()) ::
{:ok, pubkey()} | {:error, term()}
recover_compact(binary(), signature(), recovery_id(), compression()) :: {:ok, pubkey()} | {:error, term()}
Link to this function
sign(data, privkey) View Source
Link to this function
sign_compact(data, privkey)
View Source
sign_compact(data, privkey)
View Source
sign_compact(binary(), privkey()) ::
{:ok, signature(), recovery_id()} | {:error, term()}
sign_compact(binary(), privkey()) :: {:ok, signature(), recovery_id()} | {:error, term()}
Link to this function
verify(data, signature, pubkey) View Source
Link to this function