forked from LBRYCommunity/lbry-sdk
145 lines
4.5 KiB
Python
145 lines
4.5 KiB
Python
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
# source: lbryschema/proto/certificate.proto
|
||
|
|
||
|
import sys
|
||
|
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||
|
from google.protobuf.internal import enum_type_wrapper
|
||
|
from google.protobuf import descriptor as _descriptor
|
||
|
from google.protobuf import message as _message
|
||
|
from google.protobuf import reflection as _reflection
|
||
|
from google.protobuf import symbol_database as _symbol_database
|
||
|
from google.protobuf import descriptor_pb2
|
||
|
# @@protoc_insertion_point(imports)
|
||
|
|
||
|
_sym_db = _symbol_database.Default()
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
DESCRIPTOR = _descriptor.FileDescriptor(
|
||
|
name='lbryschema/proto/certificate.proto',
|
||
|
package='',
|
||
|
serialized_pb=_b('\n\"lbryschema/proto/certificate.proto\"\x8e\x01\n\x0b\x43\x65rtificate\x12%\n\x07version\x18\x01 \x02(\x0e\x32\x14.Certificate.Version\x12\x19\n\x07keyType\x18\x02 \x02(\x0e\x32\x08.KeyType\x12\x11\n\tpublicKey\x18\x04 \x02(\x0c\"*\n\x07Version\x12\x13\n\x0fUNKNOWN_VERSION\x10\x00\x12\n\n\x06_0_0_1\x10\x01*Q\n\x07KeyType\x12\x1b\n\x17UNKNOWN_PUBLIC_KEY_TYPE\x10\x00\x12\x0c\n\x08NIST256p\x10\x01\x12\x0c\n\x08NIST384p\x10\x02\x12\r\n\tSECP256k1\x10\x03')
|
||
|
)
|
||
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||
|
|
||
|
_KEYTYPE = _descriptor.EnumDescriptor(
|
||
|
name='KeyType',
|
||
|
full_name='KeyType',
|
||
|
filename=None,
|
||
|
file=DESCRIPTOR,
|
||
|
values=[
|
||
|
_descriptor.EnumValueDescriptor(
|
||
|
name='UNKNOWN_PUBLIC_KEY_TYPE', index=0, number=0,
|
||
|
options=None,
|
||
|
type=None),
|
||
|
_descriptor.EnumValueDescriptor(
|
||
|
name='NIST256p', index=1, number=1,
|
||
|
options=None,
|
||
|
type=None),
|
||
|
_descriptor.EnumValueDescriptor(
|
||
|
name='NIST384p', index=2, number=2,
|
||
|
options=None,
|
||
|
type=None),
|
||
|
_descriptor.EnumValueDescriptor(
|
||
|
name='SECP256k1', index=3, number=3,
|
||
|
options=None,
|
||
|
type=None),
|
||
|
],
|
||
|
containing_type=None,
|
||
|
options=None,
|
||
|
serialized_start=183,
|
||
|
serialized_end=264,
|
||
|
)
|
||
|
_sym_db.RegisterEnumDescriptor(_KEYTYPE)
|
||
|
|
||
|
KeyType = enum_type_wrapper.EnumTypeWrapper(_KEYTYPE)
|
||
|
UNKNOWN_PUBLIC_KEY_TYPE = 0
|
||
|
NIST256p = 1
|
||
|
NIST384p = 2
|
||
|
SECP256k1 = 3
|
||
|
|
||
|
|
||
|
_CERTIFICATE_VERSION = _descriptor.EnumDescriptor(
|
||
|
name='Version',
|
||
|
full_name='Certificate.Version',
|
||
|
filename=None,
|
||
|
file=DESCRIPTOR,
|
||
|
values=[
|
||
|
_descriptor.EnumValueDescriptor(
|
||
|
name='UNKNOWN_VERSION', index=0, number=0,
|
||
|
options=None,
|
||
|
type=None),
|
||
|
_descriptor.EnumValueDescriptor(
|
||
|
name='_0_0_1', index=1, number=1,
|
||
|
options=None,
|
||
|
type=None),
|
||
|
],
|
||
|
containing_type=None,
|
||
|
options=None,
|
||
|
serialized_start=139,
|
||
|
serialized_end=181,
|
||
|
)
|
||
|
_sym_db.RegisterEnumDescriptor(_CERTIFICATE_VERSION)
|
||
|
|
||
|
|
||
|
_CERTIFICATE = _descriptor.Descriptor(
|
||
|
name='Certificate',
|
||
|
full_name='Certificate',
|
||
|
filename=None,
|
||
|
file=DESCRIPTOR,
|
||
|
containing_type=None,
|
||
|
fields=[
|
||
|
_descriptor.FieldDescriptor(
|
||
|
name='version', full_name='Certificate.version', index=0,
|
||
|
number=1, type=14, cpp_type=8, label=2,
|
||
|
has_default_value=False, default_value=0,
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
options=None),
|
||
|
_descriptor.FieldDescriptor(
|
||
|
name='keyType', full_name='Certificate.keyType', index=1,
|
||
|
number=2, type=14, cpp_type=8, label=2,
|
||
|
has_default_value=False, default_value=0,
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
options=None),
|
||
|
_descriptor.FieldDescriptor(
|
||
|
name='publicKey', full_name='Certificate.publicKey', index=2,
|
||
|
number=4, type=12, cpp_type=9, label=2,
|
||
|
has_default_value=False, default_value=_b(""),
|
||
|
message_type=None, enum_type=None, containing_type=None,
|
||
|
is_extension=False, extension_scope=None,
|
||
|
options=None),
|
||
|
],
|
||
|
extensions=[
|
||
|
],
|
||
|
nested_types=[],
|
||
|
enum_types=[
|
||
|
_CERTIFICATE_VERSION,
|
||
|
],
|
||
|
options=None,
|
||
|
is_extendable=False,
|
||
|
extension_ranges=[],
|
||
|
oneofs=[
|
||
|
],
|
||
|
serialized_start=39,
|
||
|
serialized_end=181,
|
||
|
)
|
||
|
|
||
|
_CERTIFICATE.fields_by_name['version'].enum_type = _CERTIFICATE_VERSION
|
||
|
_CERTIFICATE.fields_by_name['keyType'].enum_type = _KEYTYPE
|
||
|
_CERTIFICATE_VERSION.containing_type = _CERTIFICATE
|
||
|
DESCRIPTOR.message_types_by_name['Certificate'] = _CERTIFICATE
|
||
|
DESCRIPTOR.enum_types_by_name['KeyType'] = _KEYTYPE
|
||
|
|
||
|
Certificate = _reflection.GeneratedProtocolMessageType('Certificate', (_message.Message,), dict(
|
||
|
DESCRIPTOR = _CERTIFICATE,
|
||
|
__module__ = 'lbryschema.proto.certificate_pb2'
|
||
|
# @@protoc_insertion_point(class_scope:Certificate)
|
||
|
))
|
||
|
_sym_db.RegisterMessage(Certificate)
|
||
|
|
||
|
|
||
|
# @@protoc_insertion_point(module_scope)
|