sign_manager

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingHdWalletResp         = errors.New("missing hd-wallet api response")
	ErrMissingDerivationPathField  = errors.New("missing derivationPath field sign in request item")
	ErrUnableDecodeGrpcErrorStatus = errors.New("unable to decode grpc error status")
)

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(logger *zap.Logger,
	signReqDataSvc signRequestDataService,
	hdWalletClient hdwallet.HdWalletApiClient,
	eventPublisherSvc eventPublisherService,
	txStmtManager transactionalStatementManager,
) *Service

func (*Service) CloseSignRequest

func (s *Service) CloseSignRequest(ctx context.Context,
	signReqUUID string,
) error

func (*Service) CloseSignRequestByMultipleWallets

func (s *Service) CloseSignRequestByMultipleWallets(ctx context.Context,
	walletUUIDs []string,
) (uint, []*entities.SignRequest, error)

func (*Service) CloseSignRequestBySession

func (s *Service) CloseSignRequestBySession(ctx context.Context,
	sessionUUID string,
) (uint, []*entities.SignRequest, error)

func (*Service) CloseSignRequestByWallet

func (s *Service) CloseSignRequestByWallet(ctx context.Context,
	walletUUID string,
) (uint, []*entities.SignRequest, error)

func (*Service) ExecuteSignRequest

func (s *Service) ExecuteSignRequest(ctx context.Context,
	signReqItem *entities.SignRequest,
	transactionData []byte,
) (signerAddr *pbCommon.DerivationAddressIdentity, signedData []byte, err error)

func (*Service) GetActiveSignRequest

func (s *Service) GetActiveSignRequest(ctx context.Context,
	signReqUUID string,
) (*entities.SignRequest, error)

func (*Service) PrepareSignRequest

func (s *Service) PrepareSignRequest(ctx context.Context,
	mnemonicUUID string,
	sessionUUID string,
	purposeUUID string,
	account, change, index uint32,
) (addr *pbCommon.DerivationAddressIdentity, signReqItem *entities.SignRequest, err error)

Jump to

Keyboard shortcuts

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