ForgeSdk v0.40.3 ForgeSdk.Wallet protocol View Source
Wallet protocol for manipulate wallet
Link to this section Summary
Functions
Create a wallet
Convert the wallet type to forge abi wallet type
Sign the data with wallet
Verify the signature of the transaction with a given wallet
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: ForgeSdk.Wallet.t()
t() :: ForgeSdk.Wallet.t()
Link to this section Functions
Link to this function
create(type)
View Source
create(type)
View Source
create(t()) :: ForgeAbi.WalletInfo.t() | {:error, term()}
create(t()) :: ForgeAbi.WalletInfo.t() | {:error, term()}
Create a wallet
Link to this function
get_type(type)
View Source
get_type(type)
View Source
get_type(t()) :: ForgeAbi.WalletType.t()
get_type(t()) :: ForgeAbi.WalletType.t()
Convert the wallet type to forge abi wallet type
Link to this function
sign!(type, wallet, data)
View Source
sign!(type, wallet, data)
View Source
sign!(t(), ForgeAbi.WalletInfo.t(), binary()) :: binary()
sign!(t(), ForgeAbi.WalletInfo.t(), binary()) :: binary()
Sign the data with wallet
Link to this function
verify(type, wallet, data, signature)
View Source
verify(type, wallet, data, signature)
View Source
verify(t(), ForgeAbi.WalletInfo.t(), binary(), binary()) :: boolean()
verify(t(), ForgeAbi.WalletInfo.t(), binary(), binary()) :: boolean()
Verify the signature of the transaction with a given wallet