View Source StarkInfra.Key (starkinfra v0.0.1)

Used to generate API-compatible key pairs

Link to this section Summary

Functions

Generates a secp256k1 ECDSA private/public key pair to be used in the API authentications

Link to this section Functions

@spec create(any()) :: {binary(), binary()}

Generates a secp256k1 ECDSA private/public key pair to be used in the API authentications

parameters-optional

Parameters (optional):

- `path` [string, default nil]: path to save the keys .pem files. No files will be saved if this parameter isn't provided.