Univrse.Alg.ES256K (Univrse v0.2.0) View Source

ES256K algorithm module.

Signs and verifies messages using ECDSA signatures on the secp256k1 curve.

Link to this section Summary

Functions

Signs the message with the key using the specified algorithm.

Verifies the signature with the message and key, using the specified algorithm.

Link to this section Functions

Link to this function

sign(arg1, message, key)

View Source

Specs

sign(String.t(), binary(), Univrse.Key.t()) :: binary() | {:error, any()}

Signs the message with the key using the specified algorithm.

Link to this function

verify(arg1, sig, message, key)

View Source

Specs

verify(String.t(), binary(), binary(), Univrse.Key.t()) ::
  boolean() | {:error, any()}

Verifies the signature with the message and key, using the specified algorithm.