pb

package
v0.0.0-...-ef04b01 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: AGPL-3.0-or-later Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OperatorType_name = map[int32]string{
		0: "OT_ROCKETPOOL",
		1: "OT_SOLO",
	}
	OperatorType_value = map[string]int32{
		"OT_ROCKETPOOL": 0,
		"OT_SOLO":       1,
	}
)

Enum value maps for OperatorType.

View Source
var File_credential_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthenticatedCredential

type AuthenticatedCredential struct {
	Credential *Credential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` // The credential itself
	Mac        []byte      `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"`               // The (H)MAC
	// contains filtered or unexported fields
}

func (*AuthenticatedCredential) Descriptor deprecated

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

Deprecated: Use AuthenticatedCredential.ProtoReflect.Descriptor instead.

func (*AuthenticatedCredential) GetCredential

func (x *AuthenticatedCredential) GetCredential() *Credential

func (*AuthenticatedCredential) GetMac

func (x *AuthenticatedCredential) GetMac() []byte

func (*AuthenticatedCredential) ProtoMessage

func (*AuthenticatedCredential) ProtoMessage()

func (*AuthenticatedCredential) ProtoReflect

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

func (*AuthenticatedCredential) Reset

func (x *AuthenticatedCredential) Reset()

func (*AuthenticatedCredential) String

func (x *AuthenticatedCredential) String() string

type Credential

type Credential struct {
	NodeId       []byte       `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // 20 bytes representing the Node address, or if a solo validator, the withdrawal address.
	Timestamp    int64        `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`        // UTC epoch time the credential was issued
	OperatorType OperatorType ``                                                                                // The type of Node Operator for whom the credential was issued.
	/* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetNodeId

func (x *Credential) GetNodeId() []byte

func (*Credential) GetOperatorType

func (x *Credential) GetOperatorType() OperatorType

func (*Credential) GetTimestamp

func (x *Credential) GetTimestamp() int64

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type OperatorType

type OperatorType int32
const (
	OperatorType_OT_ROCKETPOOL OperatorType = 0 // Issued to a RP NO via a signature from their node wallet.
	OperatorType_OT_SOLO       OperatorType = 1 // Issued to a solo validator via a signature from their 0x01 withdrawal address.
)

func (OperatorType) Descriptor

func (OperatorType) Enum

func (x OperatorType) Enum() *OperatorType

func (OperatorType) EnumDescriptor deprecated

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

Deprecated: Use OperatorType.Descriptor instead.

func (OperatorType) Number

func (OperatorType) String

func (x OperatorType) String() string

func (OperatorType) Type

Jump to

Keyboard shortcuts

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