bbs_go_proto

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BBSCurveType_name = map[int32]string{
		0: "UNKNOWN_BBS_CURVE_TYPE",
		1: "BLS12_381",
	}
	BBSCurveType_value = map[string]int32{
		"UNKNOWN_BBS_CURVE_TYPE": 0,
		"BLS12_381":              1,
	}
)

Enum value maps for BBSCurveType.

View Source
var (
	GroupField_name = map[int32]string{
		0: "UNKNOWN_GROUP_FIELD",
		1: "G1",
		2: "G2",
	}
	GroupField_value = map[string]int32{
		"UNKNOWN_GROUP_FIELD": 0,
		"G1":                  1,
		"G2":                  2,
	}
)

Enum value maps for GroupField.

View Source
var File_proto_bbs_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BBSCurveType

type BBSCurveType int32
const (
	BBSCurveType_UNKNOWN_BBS_CURVE_TYPE BBSCurveType = 0
	BBSCurveType_BLS12_381              BBSCurveType = 1
)

func (BBSCurveType) Descriptor

func (BBSCurveType) Enum

func (x BBSCurveType) Enum() *BBSCurveType

func (BBSCurveType) EnumDescriptor deprecated

func (BBSCurveType) EnumDescriptor() ([]byte, []int)

Deprecated: Use BBSCurveType.Descriptor instead.

func (BBSCurveType) Number

func (BBSCurveType) String

func (x BBSCurveType) String() string

func (BBSCurveType) Type

type BBSKeyFormat

type BBSKeyFormat struct {
	Params *BBSParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*BBSKeyFormat) Descriptor deprecated

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

Deprecated: Use BBSKeyFormat.ProtoReflect.Descriptor instead.

func (*BBSKeyFormat) GetParams

func (x *BBSKeyFormat) GetParams() *BBSParams

func (*BBSKeyFormat) ProtoMessage

func (*BBSKeyFormat) ProtoMessage()

func (*BBSKeyFormat) ProtoReflect

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

func (*BBSKeyFormat) Reset

func (x *BBSKeyFormat) Reset()

func (*BBSKeyFormat) String

func (x *BBSKeyFormat) String() string

type BBSParams

type BBSParams struct {
	HashType common_go_proto.HashType `protobuf:"varint,1,opt,name=hash_type,json=hashType,proto3,enum=google.crypto.tink.HashType" json:"hash_type,omitempty"`
	Curve    BBSCurveType             `protobuf:"varint,2,opt,name=curve,proto3,enum=google.crypto.tink.BBSCurveType" json:"curve,omitempty"`
	Group    GroupField               `protobuf:"varint,3,opt,name=group,proto3,enum=google.crypto.tink.GroupField" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*BBSParams) Descriptor deprecated

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

Deprecated: Use BBSParams.ProtoReflect.Descriptor instead.

func (*BBSParams) GetCurve

func (x *BBSParams) GetCurve() BBSCurveType

func (*BBSParams) GetGroup

func (x *BBSParams) GetGroup() GroupField

func (*BBSParams) GetHashType

func (x *BBSParams) GetHashType() common_go_proto.HashType

func (*BBSParams) ProtoMessage

func (*BBSParams) ProtoMessage()

func (*BBSParams) ProtoReflect

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

func (*BBSParams) Reset

func (x *BBSParams) Reset()

func (*BBSParams) String

func (x *BBSParams) String() string

type BBSPrivateKey

type BBSPrivateKey struct {
	Version   uint32        `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	PublicKey *BBSPublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	KeyValue  []byte        `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	// contains filtered or unexported fields
}

func (*BBSPrivateKey) Descriptor deprecated

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

Deprecated: Use BBSPrivateKey.ProtoReflect.Descriptor instead.

func (*BBSPrivateKey) GetKeyValue

func (x *BBSPrivateKey) GetKeyValue() []byte

func (*BBSPrivateKey) GetPublicKey

func (x *BBSPrivateKey) GetPublicKey() *BBSPublicKey

func (*BBSPrivateKey) GetVersion

func (x *BBSPrivateKey) GetVersion() uint32

func (*BBSPrivateKey) ProtoMessage

func (*BBSPrivateKey) ProtoMessage()

func (*BBSPrivateKey) ProtoReflect

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

func (*BBSPrivateKey) Reset

func (x *BBSPrivateKey) Reset()

func (*BBSPrivateKey) String

func (x *BBSPrivateKey) String() string

type BBSPublicKey

type BBSPublicKey struct {
	Version  uint32     `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Params   *BBSParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	KeyValue []byte     `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	// contains filtered or unexported fields
}

func (*BBSPublicKey) Descriptor deprecated

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

Deprecated: Use BBSPublicKey.ProtoReflect.Descriptor instead.

func (*BBSPublicKey) GetKeyValue

func (x *BBSPublicKey) GetKeyValue() []byte

func (*BBSPublicKey) GetParams

func (x *BBSPublicKey) GetParams() *BBSParams

func (*BBSPublicKey) GetVersion

func (x *BBSPublicKey) GetVersion() uint32

func (*BBSPublicKey) ProtoMessage

func (*BBSPublicKey) ProtoMessage()

func (*BBSPublicKey) ProtoReflect

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

func (*BBSPublicKey) Reset

func (x *BBSPublicKey) Reset()

func (*BBSPublicKey) String

func (x *BBSPublicKey) String() string

type GroupField

type GroupField int32
const (
	GroupField_UNKNOWN_GROUP_FIELD GroupField = 0
	GroupField_G1                  GroupField = 1
	GroupField_G2                  GroupField = 2
)

func (GroupField) Descriptor

func (GroupField) Descriptor() protoreflect.EnumDescriptor

func (GroupField) Enum

func (x GroupField) Enum() *GroupField

func (GroupField) EnumDescriptor deprecated

func (GroupField) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupField.Descriptor instead.

func (GroupField) Number

func (x GroupField) Number() protoreflect.EnumNumber

func (GroupField) String

func (x GroupField) String() string

func (GroupField) Type

Jump to

Keyboard shortcuts

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