RaiEx v0.1.0 RaiEx.Tools View Source

This module is provides convenience functions for working with payments.

Link to this section Summary

Functions

Calculates and compares the checksum on an address, returns a boolean

Changes the password for the wallet

Locks the given wallet

Generates a wallet seed

Unlocks the given wallet with its password

Creates a new adhod wallet

Creates a new encrypted wallet. Locks it with password

Link to this section Functions

Calculates and compares the checksum on an address, returns a boolean.

Examples

iex> address_valid("xrb_34bmpi65zr967cdzy4uy4twu7mqs9nrm53r1penffmuex6ruqy8nxp7ms1h1")
true

iex> address_valid("clearly not valid")
false
Link to this function change_password(wallet, current_pwd, password) View Source

Changes the password for the wallet.

Examples

iex> change_password(wallet, current_pwd, new_pwd)
{:ok, wallet}

iex> change_password(wallet, invalid_pwd, new_pwd)
{:error, reason}

Locks the given wallet.

Generates a wallet seed.

Link to this function unlock_wallet(wallet, password) View Source

Unlocks the given wallet with its password.

Link to this function wallet_add_adhoc(wallet) View Source

Creates a new adhod wallet.

Link to this function wallet_create_encrypted(password) View Source

Creates a new encrypted wallet. Locks it with password.