Documentation ¶
Index ¶
- type Connector
- func (c Connector) Create(ctx context.Context, id string, attr *entities.Attributes) (*entities.ETHAccount, error)
- func (c Connector) Decrypt(ctx context.Context, addr common.Address, data []byte) ([]byte, error)
- func (c Connector) Delete(ctx context.Context, addr ethcommon.Address) error
- func (c Connector) Destroy(ctx context.Context, addr ethcommon.Address) error
- func (c Connector) Encrypt(ctx context.Context, addr ethcommon.Address, data []byte) ([]byte, error)
- func (c Connector) Get(ctx context.Context, addr ethcommon.Address) (*entities.ETHAccount, error)
- func (c Connector) GetDeleted(ctx context.Context, addr ethcommon.Address) (*entities.ETHAccount, error)
- func (c Connector) Import(ctx context.Context, id string, privKey []byte, attr *entities.Attributes) (*entities.ETHAccount, error)
- func (c Connector) List(ctx context.Context, limit, offset uint64) ([]common.Address, error)
- func (c Connector) ListDeleted(ctx context.Context, limit, offset uint64) ([]common.Address, error)
- func (c Connector) Restore(ctx context.Context, addr ethcommon.Address) error
- func (c Connector) Sign(ctx context.Context, addr common.Address, data []byte) ([]byte, error)
- func (c Connector) SignEEA(ctx context.Context, addr common.Address, chainID *big.Int, ...) ([]byte, error)
- func (c Connector) SignMessage(ctx context.Context, addr common.Address, data []byte) ([]byte, error)
- func (c Connector) SignPrivate(ctx context.Context, addr common.Address, tx *quorumtypes.Transaction) ([]byte, error)
- func (c Connector) SignTransaction(ctx context.Context, addr common.Address, chainID *big.Int, ...) ([]byte, error)
- func (c Connector) SignTypedData(ctx context.Context, addr common.Address, typedData *core.TypedData) ([]byte, error)
- func (c Connector) Update(ctx context.Context, addr ethcommon.Address, attr *entities.Attributes) (*entities.ETHAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func NewConnector(store stores.KeyStore, db database.ETHAccounts, authorizator auth.Authorizator, logger log.Logger) *Connector
func (Connector) Create ¶
func (c Connector) Create(ctx context.Context, id string, attr *entities.Attributes) (*entities.ETHAccount, error)
func (Connector) GetDeleted ¶
func (Connector) Import ¶
func (c Connector) Import(ctx context.Context, id string, privKey []byte, attr *entities.Attributes) (*entities.ETHAccount, error)
func (Connector) ListDeleted ¶
func (Connector) SignMessage ¶
func (Connector) SignPrivate ¶
func (c Connector) SignPrivate(ctx context.Context, addr common.Address, tx *quorumtypes.Transaction) ([]byte, error)
func (Connector) SignTransaction ¶
func (Connector) SignTypedData ¶
Click to show internal directories.
Click to hide internal directories.