View Source OnFlow.Crypto (on_flow v0.13.0)

Link to this section Summary

Functions

Generates a key pair.

Signs the message with the given private key. Options are

Link to this section Functions

@spec generate_keys() :: %{public_key: String.t(), private_key: String.t()}

Generates a key pair.

Link to this function

sign(msg, private_key, opts \\ [])

View Source

Signs the message with the given private key. Options are:

  • :hash, which defaults to :sha3_256
  • :sign, which defaults to :secp256r1