Documentation
¶
Index ¶
- type ExternalBackend
- type ExternalSigner
- func (api *ExternalSigner) Close() error
- func (api *ExternalSigner) Contains(hesap hesaplar.Hesap) bool
- func (api *ExternalSigner) Derive(path hesaplar.DerivationPath, pin bool) (hesaplar.Hesap, error)
- func (api *ExternalSigner) Hesaplar() []hesaplar.Hesap
- func (api *ExternalSigner) Open(passphrase string) error
- func (api *ExternalSigner) SelfDerive(bases []hesaplar.DerivationPath, chain orcunio.ChainStateReader)
- func (api *ExternalSigner) SignData(hesap hesaplar.Hesap, mimeType string, data []byte) ([]byte, error)
- func (api *ExternalSigner) SignDataWithPassphrase(hesap hesaplar.Hesap, passphrase, mimeType string, data []byte) ([]byte, error)
- func (api *ExternalSigner) SignText(hesap hesaplar.Hesap, text []byte) ([]byte, error)
- func (api *ExternalSigner) SignTextWithPassphrase(hesap hesaplar.Hesap, passphrase string, text []byte) ([]byte, error)
- func (api *ExternalSigner) SignTx(hesap hesaplar.Hesap, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
- func (api *ExternalSigner) SignTxWithPassphrase(hesap hesaplar.Hesap, passphrase string, tx *types.Transaction, ...) (*types.Transaction, error)
- func (api *ExternalSigner) Status() (string, error)
- func (api *ExternalSigner) URL() hesaplar.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalBackend ¶
type ExternalBackend struct {
// contains filtered or unexported fields
}
func NewExternalBackend ¶
func NewExternalBackend(endpoint string) (*ExternalBackend, error)
func (*ExternalBackend) Subscribe ¶
func (eb *ExternalBackend) Subscribe(sink chan<- hesaplar.WalletEvent) etkinlik.Subscription
func (*ExternalBackend) Wallets ¶
func (eb *ExternalBackend) Wallets() []hesaplar.Wallet
type ExternalSigner ¶
type ExternalSigner struct {
// contains filtered or unexported fields
}
ExternalSigner provides an API to interact with an external imzalayan (clef) It proxies request to the external imzalayan while forwarding relevant request headers
func NewExternalSigner ¶
func NewExternalSigner(endpoint string) (*ExternalSigner, error)
func (*ExternalSigner) Close ¶
func (api *ExternalSigner) Close() error
func (*ExternalSigner) Derive ¶
func (api *ExternalSigner) Derive(path hesaplar.DerivationPath, pin bool) (hesaplar.Hesap, error)
func (*ExternalSigner) Hesaplar ¶
func (api *ExternalSigner) Hesaplar() []hesaplar.Hesap
func (*ExternalSigner) Open ¶
func (api *ExternalSigner) Open(passphrase string) error
func (*ExternalSigner) SelfDerive ¶
func (api *ExternalSigner) SelfDerive(bases []hesaplar.DerivationPath, chain orcunio.ChainStateReader)
func (*ExternalSigner) SignData ¶
func (api *ExternalSigner) SignData(hesap hesaplar.Hesap, mimeType string, data []byte) ([]byte, error)
SignData signs keccak256(data). The mimetype parameter describes the type of data being signed
func (*ExternalSigner) SignDataWithPassphrase ¶
func (*ExternalSigner) SignTextWithPassphrase ¶
func (*ExternalSigner) SignTx ¶
func (api *ExternalSigner) SignTx(hesap hesaplar.Hesap, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
SignTx sends the transaction to the external imzalayan. If chainID is nil, or tx.ChainID is zero, the chain ID will be assigned by the external imzalayan. For non-legacy transactions, the chain ID of the transaction overrides the chainID parameter.
func (*ExternalSigner) SignTxWithPassphrase ¶
func (api *ExternalSigner) SignTxWithPassphrase(hesap hesaplar.Hesap, passphrase string, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
func (*ExternalSigner) Status ¶
func (api *ExternalSigner) Status() (string, error)
func (*ExternalSigner) URL ¶
func (api *ExternalSigner) URL() hesaplar.URL
Click to show internal directories.
Click to hide internal directories.