Documentation ¶
Index ¶
- Variables
- func AddAuditPermitBloom(bloom *types.Bloom, relatedChains, relatedNodes map[string][]byte)
- func EncodePackedAndHash(ibtp *pb.IBTP, txStatus pb.TransactionStatus) ([]byte, error)
- func GetIBTP(ledger *ledger.Ledger, id string, isReq bool) (*pb.IBTP, error)
- func GetIBTPSign(ledger *ledger.Ledger, id string, isReq bool, privKey crypto2.PrivateKey) (string, []byte, error)
- func GetIBTPTssSign(tssMgr tss.Tss, ledger *ledger.Ledger, content string, isReq bool, ...) ([]byte, []string, error)
- func GetTxStatus(ledger *ledger.Ledger, id string) (pb.TransactionStatus, error)
- func IsTssReq(req *pb.GetSignsRequest) bool
- func TestAuditPermitBloom(logger logrus.FieldLogger, bloom *types.Bloom, ...) bool
- func VerifyTssSigns(signData []byte, pub *ecdsa.PublicKey, l logrus.FieldLogger) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AuditEventStrHash = types.NewHash([]byte(fmt.Sprintf("event%d%d%d%d%d%d%d%d", pb.Event_AUDIT_PROPOSAL, pb.Event_AUDIT_APPCHAIN, pb.Event_AUDIT_RULE, pb.Event_AUDIT_SERVICE, pb.Event_AUDIT_NODE, pb.Event_AUDIT_ROLE, pb.Event_AUDIT_INTERCHAIN, pb.Event_AUDIT_DAPP)))
Functions ¶
func AddAuditPermitBloom ¶ added in v1.16.0
func EncodePackedAndHash ¶ added in v1.15.0
func GetIBTPSign ¶
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
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 VerifyTssSigns ¶ added in v1.22.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.