proto

package
v1.9.7-0...-079db7f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvelopeVersion = "0.0.1"
)

Variables

View Source
var (
	ErrEmptyEnvelope            = errors.New("empty envelope")
	ErrEnveloperVersionMismatch = errors.New("envelope version mismatch")
	ErrProtoUnmarshall          = errors.New("issue unmarshalling proto bytes")
)
View Source
var File_shutter_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DecryptionKeys

type DecryptionKeys struct {
	InstanceId uint64 `protobuf:"varint,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	Eon        uint64 `protobuf:"varint,2,opt,name=eon,proto3" json:"eon,omitempty"`
	Keys       []*Key `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"`
	// Types that are valid to be assigned to Extra:
	//
	//	*DecryptionKeys_Gnosis
	//	*DecryptionKeys_Optimism
	Extra isDecryptionKeys_Extra `protobuf_oneof:"extra"`
	// contains filtered or unexported fields
}

func UnmarshallDecryptionKeys

func UnmarshallDecryptionKeys(envelopeBytes []byte) (*DecryptionKeys, error)

func (*DecryptionKeys) Descriptor deprecated

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

Deprecated: Use DecryptionKeys.ProtoReflect.Descriptor instead.

func (*DecryptionKeys) GetEon

func (x *DecryptionKeys) GetEon() uint64

func (*DecryptionKeys) GetExtra

func (x *DecryptionKeys) GetExtra() isDecryptionKeys_Extra

func (*DecryptionKeys) GetGnosis

func (x *DecryptionKeys) GetGnosis() *GnosisDecryptionKeysExtra

func (*DecryptionKeys) GetInstanceId

func (x *DecryptionKeys) GetInstanceId() uint64

func (*DecryptionKeys) GetKeys

func (x *DecryptionKeys) GetKeys() []*Key

func (*DecryptionKeys) GetOptimism

func (x *DecryptionKeys) GetOptimism() *OptimismDecryptionKeysExtra

func (*DecryptionKeys) ProtoMessage

func (*DecryptionKeys) ProtoMessage()

func (*DecryptionKeys) ProtoReflect

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

func (*DecryptionKeys) Reset

func (x *DecryptionKeys) Reset()

func (*DecryptionKeys) String

func (x *DecryptionKeys) String() string

type DecryptionKeys_Gnosis

type DecryptionKeys_Gnosis struct {
	Gnosis *GnosisDecryptionKeysExtra `protobuf:"bytes,4,opt,name=gnosis,proto3,oneof"`
}

type DecryptionKeys_Optimism

type DecryptionKeys_Optimism struct {
	Optimism *OptimismDecryptionKeysExtra `protobuf:"bytes,5,opt,name=optimism,proto3,oneof"`
}

type Envelope

type Envelope struct {
	Version string        `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Message *anypb.Any    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Trace   *TraceContext `protobuf:"bytes,3,opt,name=trace,proto3,oneof" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func UnmarshallEnvelope

func UnmarshallEnvelope(envelopeBytes []byte) (*Envelope, error)

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetMessage

func (x *Envelope) GetMessage() *anypb.Any

func (*Envelope) GetTrace

func (x *Envelope) GetTrace() *TraceContext

func (*Envelope) GetVersion

func (x *Envelope) GetVersion() string

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

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

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

type GnosisDecryptionKeysExtra

type GnosisDecryptionKeysExtra struct {
	Slot          uint64   `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
	TxPointer     uint64   `protobuf:"varint,2,opt,name=tx_pointer,json=txPointer,proto3" json:"tx_pointer,omitempty"`
	SignerIndices []uint64 `protobuf:"varint,3,rep,packed,name=signer_indices,json=signerIndices,proto3" json:"signer_indices,omitempty"`
	Signatures    [][]byte `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

func (*GnosisDecryptionKeysExtra) Descriptor deprecated

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

Deprecated: Use GnosisDecryptionKeysExtra.ProtoReflect.Descriptor instead.

func (*GnosisDecryptionKeysExtra) GetSignatures

func (x *GnosisDecryptionKeysExtra) GetSignatures() [][]byte

func (*GnosisDecryptionKeysExtra) GetSignerIndices

func (x *GnosisDecryptionKeysExtra) GetSignerIndices() []uint64

func (*GnosisDecryptionKeysExtra) GetSlot

func (x *GnosisDecryptionKeysExtra) GetSlot() uint64

func (*GnosisDecryptionKeysExtra) GetTxPointer

func (x *GnosisDecryptionKeysExtra) GetTxPointer() uint64

func (*GnosisDecryptionKeysExtra) ProtoMessage

func (*GnosisDecryptionKeysExtra) ProtoMessage()

func (*GnosisDecryptionKeysExtra) ProtoReflect

func (*GnosisDecryptionKeysExtra) Reset

func (x *GnosisDecryptionKeysExtra) Reset()

func (*GnosisDecryptionKeysExtra) String

func (x *GnosisDecryptionKeysExtra) String() string

type Key

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

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetIdentityPreimage

func (x *Key) GetIdentityPreimage() []byte

func (*Key) GetKey

func (x *Key) GetKey() []byte

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type OptimismDecryptionKeysExtra

type OptimismDecryptionKeysExtra struct {
	// contains filtered or unexported fields
}

func (*OptimismDecryptionKeysExtra) Descriptor deprecated

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

Deprecated: Use OptimismDecryptionKeysExtra.ProtoReflect.Descriptor instead.

func (*OptimismDecryptionKeysExtra) ProtoMessage

func (*OptimismDecryptionKeysExtra) ProtoMessage()

func (*OptimismDecryptionKeysExtra) ProtoReflect

func (*OptimismDecryptionKeysExtra) Reset

func (x *OptimismDecryptionKeysExtra) Reset()

func (*OptimismDecryptionKeysExtra) String

func (x *OptimismDecryptionKeysExtra) String() string

type TraceContext

type TraceContext struct {
	TraceId    []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	SpanId     []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	TraceFlags []byte `protobuf:"bytes,3,opt,name=trace_flags,json=traceFlags,proto3" json:"trace_flags,omitempty"`
	TraceState string `protobuf:"bytes,4,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceContext) Descriptor deprecated

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

Deprecated: Use TraceContext.ProtoReflect.Descriptor instead.

func (*TraceContext) GetSpanId

func (x *TraceContext) GetSpanId() []byte

func (*TraceContext) GetTraceFlags

func (x *TraceContext) GetTraceFlags() []byte

func (*TraceContext) GetTraceId

func (x *TraceContext) GetTraceId() []byte

func (*TraceContext) GetTraceState

func (x *TraceContext) GetTraceState() string

func (*TraceContext) ProtoMessage

func (*TraceContext) ProtoMessage()

func (*TraceContext) ProtoReflect

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

func (*TraceContext) Reset

func (x *TraceContext) Reset()

func (*TraceContext) String

func (x *TraceContext) String() string

Jump to

Keyboard shortcuts

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