utils

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddAuditPermitBloom added in v1.16.0

func AddAuditPermitBloom(bloom *types.Bloom, relatedChains, relatedNodes map[string][]byte)

func EncodePackedAndHash added in v1.15.0

func EncodePackedAndHash(ibtp *pb.IBTP, txStatus pb.TransactionStatus) ([]byte, error)

func GetIBTP added in v1.22.0

func GetIBTP(ledger *ledger.Ledger, id string, isReq bool) (*pb.IBTP, error)

func GetIBTPSign

func GetIBTPSign(ledger *ledger.Ledger, id string, isReq bool, privKey crypto2.PrivateKey) (string, []byte, error)

func GetIBTPTssSign added in v1.22.0

func GetIBTPTssSign(tssMgr tss.Tss, ledger *ledger.Ledger, content string, isReq bool, signers []string) ([]byte, []string, error)

return : - signature data - blame nodes id list - error

func GetTxStatus added in v1.22.0

func GetTxStatus(ledger *ledger.Ledger, id string) (pb.TransactionStatus, error)

TODO: support global status

func IsTssReq added in v1.22.0

func IsTssReq(req *pb.GetSignsRequest) bool

func TestAuditPermitBloom added in v1.16.0

func TestAuditPermitBloom(logger logrus.FieldLogger, bloom *types.Bloom, relatedChains, relatedNodes map[string]struct{}) bool

func VerifyTssSigns added in v1.22.0

func VerifyTssSigns(signData []byte, pub *ecdsa.PublicKey, l logrus.FieldLogger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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