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

ES256K-BSM algorithm module.

Calculates a message digest using the Bitcoin Signed Message algorithm, and uses 65 byte compact signatures.

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.