ForgeSdk v0.28.3 ForgeSdk.Wallet.Util View Source
Helper functions for wallet.
Link to this section Summary
Functions
Sign the transaction with extra private key, usually used for exchange and other transactions that requires involvment for multiple party. Note this is not for multisig wallet, but for a multisig transaction
Converts a (pseudo) publick key to address
Link to this section Functions
Link to this function
create(type)
View Source
create(type)
View Source
create(ForgeAbi.WalletType.t()) :: ForgeAbi.WalletInfo.t() | {:error, term()}
create(ForgeAbi.WalletType.t()) :: ForgeAbi.WalletInfo.t() | {:error, term()}
Link to this function
deserialize(data) View Source
Link to this function
multisig!(wallet, tx, data \\ nil)
View Source
multisig!(wallet, tx, data \\ nil)
View Source
multisig!(
ForgeAbi.WalletInfo.t(),
ForgeAbi.Transaction.t(),
Google.Protobuf.Any.t() | nil
) :: ForgeAbi.Transaction.t()
multisig!( ForgeAbi.WalletInfo.t(), ForgeAbi.Transaction.t(), Google.Protobuf.Any.t() | nil ) :: ForgeAbi.Transaction.t()
Sign the transaction with extra private key, usually used for exchange and other transactions that requires involvment for multiple party. Note this is not for multisig wallet, but for a multisig transaction.
Link to this function
serialize(wallet) View Source
Link to this function
sign!(wallet, data)
View Source
sign!(wallet, data)
View Source
sign!(ForgeAbi.WalletInfo.t(), binary()) :: binary()
sign!(ForgeAbi.WalletInfo.t(), binary()) :: binary()
Link to this function
to_address(data, wallet_type)
View Source
to_address(data, wallet_type)
View Source
to_address(binary(), ForgeAbi.WalletType.t()) :: String.t()
to_address(binary(), AbtDid.Type.t()) :: String.t()
to_address(binary(), ForgeAbi.WalletType.t()) :: String.t()
to_address(binary(), AbtDid.Type.t()) :: String.t()
Converts a (pseudo) publick key to address.
Link to this function
to_did_type(wallet_type)
View Source
to_did_type(wallet_type)
View Source
to_did_type(ForgeAbi.WalletType.t()) :: AbtDid.Type.t()
to_did_type(ForgeAbi.WalletType.t()) :: AbtDid.Type.t()
Link to this function
to_wallet_type(did_type)
View Source
to_wallet_type(did_type)
View Source
to_wallet_type(AbtDid.Type.t()) :: ForgeAbi.WalletType.t()
to_wallet_type(AbtDid.Type.t()) :: ForgeAbi.WalletType.t()
Link to this function
verify(wallet, data, signature)
View Source
verify(wallet, data, signature)
View Source
verify(ForgeAbi.WalletInfo.t(), binary(), binary()) :: boolean()
verify(ForgeAbi.WalletInfo.t(), binary(), binary()) :: boolean()