remote_sign

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignMethodEvm  string = "wallet_eTHSignMsg"
	SignMethodTron string = "wallet_tronSignMsg"
	SignMethodCkb  string = "wallet_cKBSignMsg"
)

Variables

This section is empty.

Functions

func NewTransactionFromHexString

func NewTransactionFromHexString(raw string) (*core.Transaction, error)

func TransactionToHexString

func TransactionToHexString(tx *core.Transaction) (string, error)

Types

type RemoteSignClient

type RemoteSignClient struct {
	// contains filtered or unexported fields
}

func NewRemoteSignClient

func NewRemoteSignClient(ctx context.Context, apiUrl string) (*RemoteSignClient, error)

func (*RemoteSignClient) Client

func (r *RemoteSignClient) Client() rpc.Client

func (*RemoteSignClient) SignCkbMessage

func (r *RemoteSignClient) SignCkbMessage(ckbSignerAddress, message string) ([]byte, error)

func (*RemoteSignClient) SignEvmTx

func (r *RemoteSignClient) SignEvmTx(method, address string, tx *types.Transaction) (*types.Transaction, error)

func (*RemoteSignClient) SignTrxTx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL