mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 12:37:16 +00:00
4f2b7dba0c
* Update eth_deprecated.go * Update eth_api.go * Update eth_api.go * Update eth_deprecated.go * Update README.md
27 lines
1.0 KiB
Go
27 lines
1.0 KiB
Go
package commands
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/ledgerwatch/erigon/common"
|
|
"github.com/ledgerwatch/erigon/common/hexutil"
|
|
)
|
|
|
|
// Accounts implements eth_accounts. Returns a list of addresses owned by the client.
|
|
// Deprecated: This function will be removed in the future.
|
|
func (api *APIImpl) Accounts(ctx context.Context) ([]common.Address, error) {
|
|
return []common.Address{}, fmt.Errorf(NotAvailableDeprecated, "eth_accounts")
|
|
}
|
|
|
|
// Sign implements eth_sign. Calculates an Ethereum specific signature with: sign(keccak256('\\x19Ethereum Signed Message:\\n' + len(message) + message))).
|
|
// Deprecated: This function will be removed in the future.
|
|
func (api *APIImpl) Sign(ctx context.Context, _ common.Address, _ hexutil.Bytes) (hexutil.Bytes, error) {
|
|
return hexutil.Bytes(""), fmt.Errorf(NotAvailableDeprecated, "eth_sign")
|
|
}
|
|
|
|
// SignTransaction deprecated
|
|
func (api *APIImpl) SignTransaction(_ context.Context, txObject interface{}) (common.Hash, error) {
|
|
return common.Hash{0}, fmt.Errorf(NotAvailableDeprecated, "eth_signTransaction")
|
|
}
|