ForgeSdk v0.38.0 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

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

to_address(data, wallet_type) View Source
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_wallet_type(did_type) View Source
to_wallet_type(AbtDid.Type.t()) :: ForgeAbi.WalletType.t()

Link to this function

verify(wallet, data, signature) View Source