upvest v0.1.1 Upvest.Clientele.Wallet View Source
Handles operations related to Wallet
You can:
- Retrieve wallet
- List all wallets
- List specific number of wallets
For more details see https://doc.upvest.co/reference#kms_wallet_list
Link to this section Summary
Functions
Create a new wallet.
List all Wallet
List specific number of Wallet
Retrive a(n) Wallet by its ID
Sign (the hash of) data with the private key corresponding to this wallet.
Link to this section Types
Link to this section Functions
Link to this function
create(client, password, asset_id, index \\ 0, type \\ :encrypted)
View Sourcecreate(Upvest.Client.t(), binary(), binary(), non_neg_integer(), atom()) :: Upvest.response()
Create a new wallet.
The password is necessary to decrypt the Seed data to create the private key for the new wallet, and then to encrypt the new private key.
Link to this function
list(client)
View Sourcelist(Upvest.Client.t()) :: {:ok, [Upvest.Clientele.Wallet.t()]} | {:error, Upvest.error()}
List all Wallet
Link to this function
list_n(client, count)
View Sourcelist_n(Upvest.Client.t(), non_neg_integer()) :: {:ok, [Upvest.Clientele.Wallet.t()]} | {:error, Upvest.error()}
List specific number of Wallet
Link to this function
retrieve(client, id)
View Sourceretrieve(Upvest.Client.t(), binary()) :: {:ok, Upvest.Clientele.Wallet.t()} | {:error, Upvest.error()}
Retrive a(n) Wallet by its ID
Link to this function
sign(client, password, wallet_id, to_sign, input_format, output_format)
View Sourcesign(Upvest.Client.t(), binary(), binary(), binary(), binary(), binary()) :: Upvest.response()
Sign (the hash of) data with the private key corresponding to this wallet.