types

package
v1.75.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: BSD-3-Clause Imports: 6 Imported by: 6 modules, 30 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CertActionNew    = 1
	CertActionUpdate = 2
	CertActionNormal = 3

	AuthECDSA = 257
	AuthSM2   = 258
)

cert

Variables

View Source
var (
	// CertX cert执行器名
	CertX = "cert"
	// ExecerCert cert执行器字节
	ExecerCert = []byte(CertX)

	AdminKey = "Auth-cert-admin"
)
View Source
var (
	// ErrValidateCertFailed cert校验失败
	ErrValidateCertFailed = errors.New("ErrValidateCertFailed")
	// ErrGetHistoryCertData 获取证书错误
	ErrGetHistoryCertData = errors.New("ErrGetHistoryCertData")
	// ErrUnknowAuthSignType 无效签名类型
	ErrUnknowAuthSignType = errors.New("ErrUnknowAuthSignType")
	// ErrInitializeAuthority 初始化校验器失败
	ErrInitializeAuthority = errors.New("ErrInitializeAuthority")
	// ErrPermissionDeny 权限校验失败
	ErrPermissionDeny = errors.New("ErrPermissionDeny")
)

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

Types

type Authority

type Authority struct {
	Enable     bool   `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
	CryptoPath string `protobuf:"bytes,2,opt,name=cryptoPath,proto3" json:"cryptoPath,omitempty"`
	SignType   string `protobuf:"bytes,3,opt,name=signType,proto3" json:"signType,omitempty"`
	// contains filtered or unexported fields
}

func (*Authority) Descriptor deprecated

func (*Authority) Descriptor() ([]byte, []int)

Deprecated: Use Authority.ProtoReflect.Descriptor instead.

func (*Authority) GetCryptoPath

func (x *Authority) GetCryptoPath() string

func (*Authority) GetEnable

func (x *Authority) GetEnable() bool

func (*Authority) GetSignType

func (x *Authority) GetSignType() string

func (*Authority) ProtoMessage

func (*Authority) ProtoMessage()

func (*Authority) ProtoReflect added in v1.65.3

func (x *Authority) ProtoReflect() protoreflect.Message

func (*Authority) Reset

func (x *Authority) Reset()

func (*Authority) String

func (x *Authority) String() string

type Cert

type Cert struct {
	CertId     []byte `protobuf:"bytes,1,opt,name=certId,proto3" json:"certId,omitempty"`
	CreateTime int64  `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
	Key        string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value      []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Cert) Descriptor deprecated

func (*Cert) Descriptor() ([]byte, []int)

Deprecated: Use Cert.ProtoReflect.Descriptor instead.

func (*Cert) GetCertId

func (x *Cert) GetCertId() []byte

func (*Cert) GetCreateTime

func (x *Cert) GetCreateTime() int64

func (*Cert) GetKey

func (x *Cert) GetKey() string

func (*Cert) GetValue

func (x *Cert) GetValue() []byte

func (*Cert) ProtoMessage

func (*Cert) ProtoMessage()

func (*Cert) ProtoReflect added in v1.65.3

func (x *Cert) ProtoReflect() protoreflect.Message

func (*Cert) Reset

func (x *Cert) Reset()

func (*Cert) String

func (x *Cert) String() string

type CertAction

type CertAction struct {

	// Types that are assignable to Value:
	//	*CertAction_New
	//	*CertAction_Update
	//	*CertAction_Normal
	Value isCertAction_Value `protobuf_oneof:"value"`
	Ty    int32              `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*CertAction) Descriptor deprecated

func (*CertAction) Descriptor() ([]byte, []int)

Deprecated: Use CertAction.ProtoReflect.Descriptor instead.

func (*CertAction) GetNew

func (x *CertAction) GetNew() *CertNew

func (*CertAction) GetNormal

func (x *CertAction) GetNormal() *CertNormal

func (*CertAction) GetTy

func (x *CertAction) GetTy() int32

func (*CertAction) GetUpdate

func (x *CertAction) GetUpdate() *CertUpdate

func (*CertAction) GetValue

func (m *CertAction) GetValue() isCertAction_Value

func (*CertAction) ProtoMessage

func (*CertAction) ProtoMessage()

func (*CertAction) ProtoReflect added in v1.65.3

func (x *CertAction) ProtoReflect() protoreflect.Message

func (*CertAction) Reset

func (x *CertAction) Reset()

func (*CertAction) String

func (x *CertAction) String() string

type CertAction_New

type CertAction_New struct {
	New *CertNew `protobuf:"bytes,1,opt,name=new,proto3,oneof"`
}

type CertAction_Normal

type CertAction_Normal struct {
	Normal *CertNormal `protobuf:"bytes,3,opt,name=normal,proto3,oneof"`
}

type CertAction_Update

type CertAction_Update struct {
	Update *CertUpdate `protobuf:"bytes,2,opt,name=update,proto3,oneof"`
}

type CertNew

type CertNew struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CertNew) Descriptor deprecated

func (*CertNew) Descriptor() ([]byte, []int)

Deprecated: Use CertNew.ProtoReflect.Descriptor instead.

func (*CertNew) GetKey

func (x *CertNew) GetKey() string

func (*CertNew) GetValue

func (x *CertNew) GetValue() []byte

func (*CertNew) ProtoMessage

func (*CertNew) ProtoMessage()

func (*CertNew) ProtoReflect added in v1.65.3

func (x *CertNew) ProtoReflect() protoreflect.Message

func (*CertNew) Reset

func (x *CertNew) Reset()

func (*CertNew) String

func (x *CertNew) String() string

type CertNormal

type CertNormal struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CertNormal) Descriptor deprecated

func (*CertNormal) Descriptor() ([]byte, []int)

Deprecated: Use CertNormal.ProtoReflect.Descriptor instead.

func (*CertNormal) GetKey

func (x *CertNormal) GetKey() string

func (*CertNormal) GetValue

func (x *CertNormal) GetValue() []byte

func (*CertNormal) ProtoMessage

func (*CertNormal) ProtoMessage()

func (*CertNormal) ProtoReflect added in v1.65.3

func (x *CertNormal) ProtoReflect() protoreflect.Message

func (*CertNormal) Reset

func (x *CertNormal) Reset()

func (*CertNormal) String

func (x *CertNormal) String() string

type CertSignature added in v1.65.2

type CertSignature struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Cert      []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"`
	Uid       []byte `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*CertSignature) Descriptor deprecated added in v1.65.2

func (*CertSignature) Descriptor() ([]byte, []int)

Deprecated: Use CertSignature.ProtoReflect.Descriptor instead.

func (*CertSignature) GetCert added in v1.65.2

func (x *CertSignature) GetCert() []byte

func (*CertSignature) GetSignature added in v1.65.2

func (x *CertSignature) GetSignature() []byte

func (*CertSignature) GetUid added in v1.65.2

func (x *CertSignature) GetUid() []byte

func (*CertSignature) ProtoMessage added in v1.65.2

func (*CertSignature) ProtoMessage()

func (*CertSignature) ProtoReflect added in v1.65.3

func (x *CertSignature) ProtoReflect() protoreflect.Message

func (*CertSignature) Reset added in v1.65.2

func (x *CertSignature) Reset()

func (*CertSignature) String added in v1.65.2

func (x *CertSignature) String() string

type CertType

type CertType struct {
	types.ExecTypeBase
}

CertType cert执行器类型结构

func NewType

func NewType(cfg *types.Chain33Config) *CertType

NewType 新建cert类型结构

func (*CertType) GetLogMap

func (b *CertType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取logmap

func (*CertType) GetName

func (b *CertType) GetName() string

GetName 获取执行器名

func (*CertType) GetPayload

func (b *CertType) GetPayload() types.Message

GetPayload 获取payload

func (*CertType) GetTypeMap

func (b *CertType) GetTypeMap() map[string]int32

GetTypeMap 获取类型map

type CertUpdate

type CertUpdate struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CertUpdate) Descriptor deprecated

func (*CertUpdate) Descriptor() ([]byte, []int)

Deprecated: Use CertUpdate.ProtoReflect.Descriptor instead.

func (*CertUpdate) GetKey

func (x *CertUpdate) GetKey() string

func (*CertUpdate) GetValue

func (x *CertUpdate) GetValue() []byte

func (*CertUpdate) ProtoMessage

func (*CertUpdate) ProtoMessage()

func (*CertUpdate) ProtoReflect added in v1.65.3

func (x *CertUpdate) ProtoReflect() protoreflect.Message

func (*CertUpdate) Reset

func (x *CertUpdate) Reset()

func (*CertUpdate) String

func (x *CertUpdate) String() string

type RepQueryValidCertSN added in v1.65.2

type RepQueryValidCertSN struct {
	Sn []byte `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn,omitempty"`
	// contains filtered or unexported fields
}

func (*RepQueryValidCertSN) Descriptor deprecated added in v1.65.2

func (*RepQueryValidCertSN) Descriptor() ([]byte, []int)

Deprecated: Use RepQueryValidCertSN.ProtoReflect.Descriptor instead.

func (*RepQueryValidCertSN) GetSn added in v1.65.2

func (x *RepQueryValidCertSN) GetSn() []byte

func (*RepQueryValidCertSN) ProtoMessage added in v1.65.2

func (*RepQueryValidCertSN) ProtoMessage()

func (*RepQueryValidCertSN) ProtoReflect added in v1.65.3

func (x *RepQueryValidCertSN) ProtoReflect() protoreflect.Message

func (*RepQueryValidCertSN) Reset added in v1.65.2

func (x *RepQueryValidCertSN) Reset()

func (*RepQueryValidCertSN) String added in v1.65.2

func (x *RepQueryValidCertSN) String() string

type ReqQueryValidCertSN added in v1.65.2

type ReqQueryValidCertSN struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqQueryValidCertSN) Descriptor deprecated added in v1.65.2

func (*ReqQueryValidCertSN) Descriptor() ([]byte, []int)

Deprecated: Use ReqQueryValidCertSN.ProtoReflect.Descriptor instead.

func (*ReqQueryValidCertSN) GetAddr added in v1.65.2

func (x *ReqQueryValidCertSN) GetAddr() string

func (*ReqQueryValidCertSN) ProtoMessage added in v1.65.2

func (*ReqQueryValidCertSN) ProtoMessage()

func (*ReqQueryValidCertSN) ProtoReflect added in v1.65.3

func (x *ReqQueryValidCertSN) ProtoReflect() protoreflect.Message

func (*ReqQueryValidCertSN) Reset added in v1.65.2

func (x *ReqQueryValidCertSN) Reset()

func (*ReqQueryValidCertSN) String added in v1.65.2

func (x *ReqQueryValidCertSN) String() string

Jump to

Keyboard shortcuts

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