prover

package
v0.5.4-RC2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AggregatorService_Channel_FullMethodName = "/aggregator.v1.AggregatorService/Channel"
)

Variables

View Source
var (
	Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_OK",
		2: "RESULT_ERROR",
		3: "RESULT_INTERNAL_ERROR",
	}
	Result_value = map[string]int32{
		"RESULT_UNSPECIFIED":    0,
		"RESULT_OK":             1,
		"RESULT_ERROR":          2,
		"RESULT_INTERNAL_ERROR": 3,
	}
)

Enum value maps for Result.

View Source
var (
	GetStatusResponse_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_BOOTING",
		2: "STATUS_COMPUTING",
		3: "STATUS_IDLE",
		4: "STATUS_HALT",
	}
	GetStatusResponse_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_BOOTING":     1,
		"STATUS_COMPUTING":   2,
		"STATUS_IDLE":        3,
		"STATUS_HALT":        4,
	}
)

Enum value maps for GetStatusResponse_Status.

View Source
var (
	GetProofResponse_Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_COMPLETED_OK",
		2: "RESULT_ERROR",
		3: "RESULT_COMPLETED_ERROR",
		4: "RESULT_PENDING",
		5: "RESULT_INTERNAL_ERROR",
		6: "RESULT_CANCEL",
	}
	GetProofResponse_Result_value = map[string]int32{
		"RESULT_UNSPECIFIED":     0,
		"RESULT_COMPLETED_OK":    1,
		"RESULT_ERROR":           2,
		"RESULT_COMPLETED_ERROR": 3,
		"RESULT_PENDING":         4,
		"RESULT_INTERNAL_ERROR":  5,
		"RESULT_CANCEL":          6,
	}
)

Enum value maps for GetProofResponse_Result.

View Source
var (
	ErrBadProverResponse    = errors.New("Prover returned wrong type for response")  //nolint:revive
	ErrProverInternalError  = errors.New("Prover returned INTERNAL_ERROR response")  //nolint:revive
	ErrProverCompletedError = errors.New("Prover returned COMPLETED_ERROR response") //nolint:revive
	ErrBadRequest           = errors.New("Prover returned ERROR for a bad request")  //nolint:revive
	ErrUnspecified          = errors.New("Prover returned an UNSPECIFIED response")  //nolint:revive
	ErrUnknown              = errors.New("Prover returned an unknown response")      //nolint:revive
	ErrProofCanceled        = errors.New("Proof has been canceled")                  //nolint:revive
)
View Source
var AggregatorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aggregator.v1.AggregatorService",
	HandlerType: (*AggregatorServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Channel",
			Handler:       _AggregatorService_Channel_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "aggregator.proto",
}

AggregatorService_ServiceDesc is the grpc.ServiceDesc for AggregatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_aggregator_proto protoreflect.FileDescriptor

Functions

func RegisterAggregatorServiceServer added in v0.0.990

func RegisterAggregatorServiceServer(s grpc.ServiceRegistrar, srv AggregatorServiceServer)

Types

type AggregatorMessage added in v0.0.990

type AggregatorMessage struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Request:
	//
	//	*AggregatorMessage_GetStatusRequest
	//	*AggregatorMessage_GenBatchProofRequest
	//	*AggregatorMessage_GenAggregatedProofRequest
	//	*AggregatorMessage_GenFinalProofRequest
	//	*AggregatorMessage_CancelRequest
	//	*AggregatorMessage_GetProofRequest
	Request isAggregatorMessage_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*AggregatorMessage) Descriptor deprecated added in v0.0.990

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

Deprecated: Use AggregatorMessage.ProtoReflect.Descriptor instead.

func (*AggregatorMessage) GetCancelRequest added in v0.0.990

func (x *AggregatorMessage) GetCancelRequest() *CancelRequest

func (*AggregatorMessage) GetGenAggregatedProofRequest added in v0.0.990

func (x *AggregatorMessage) GetGenAggregatedProofRequest() *GenAggregatedProofRequest

func (*AggregatorMessage) GetGenBatchProofRequest added in v0.0.990

func (x *AggregatorMessage) GetGenBatchProofRequest() *GenBatchProofRequest

func (*AggregatorMessage) GetGenFinalProofRequest added in v0.0.990

func (x *AggregatorMessage) GetGenFinalProofRequest() *GenFinalProofRequest

func (*AggregatorMessage) GetGetProofRequest added in v0.0.990

func (x *AggregatorMessage) GetGetProofRequest() *GetProofRequest

func (*AggregatorMessage) GetGetStatusRequest added in v0.0.990

func (x *AggregatorMessage) GetGetStatusRequest() *GetStatusRequest

func (*AggregatorMessage) GetId added in v0.0.990

func (x *AggregatorMessage) GetId() string

func (*AggregatorMessage) GetRequest added in v0.0.990

func (m *AggregatorMessage) GetRequest() isAggregatorMessage_Request

func (*AggregatorMessage) ProtoMessage added in v0.0.990

func (*AggregatorMessage) ProtoMessage()

func (*AggregatorMessage) ProtoReflect added in v0.0.990

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

func (*AggregatorMessage) Reset added in v0.0.990

func (x *AggregatorMessage) Reset()

func (*AggregatorMessage) String added in v0.0.990

func (x *AggregatorMessage) String() string

type AggregatorMessage_CancelRequest added in v0.0.990

type AggregatorMessage_CancelRequest struct {
	CancelRequest *CancelRequest `protobuf:"bytes,6,opt,name=cancel_request,json=cancelRequest,proto3,oneof"`
}

type AggregatorMessage_GenAggregatedProofRequest added in v0.0.990

type AggregatorMessage_GenAggregatedProofRequest struct {
	GenAggregatedProofRequest *GenAggregatedProofRequest `protobuf:"bytes,4,opt,name=gen_aggregated_proof_request,json=genAggregatedProofRequest,proto3,oneof"`
}

type AggregatorMessage_GenBatchProofRequest added in v0.0.990

type AggregatorMessage_GenBatchProofRequest struct {
	GenBatchProofRequest *GenBatchProofRequest `protobuf:"bytes,3,opt,name=gen_batch_proof_request,json=genBatchProofRequest,proto3,oneof"`
}

type AggregatorMessage_GenFinalProofRequest added in v0.0.990

type AggregatorMessage_GenFinalProofRequest struct {
	GenFinalProofRequest *GenFinalProofRequest `protobuf:"bytes,5,opt,name=gen_final_proof_request,json=genFinalProofRequest,proto3,oneof"`
}

type AggregatorMessage_GetProofRequest added in v0.0.990

type AggregatorMessage_GetProofRequest struct {
	GetProofRequest *GetProofRequest `protobuf:"bytes,7,opt,name=get_proof_request,json=getProofRequest,proto3,oneof"`
}

type AggregatorMessage_GetStatusRequest added in v0.0.990

type AggregatorMessage_GetStatusRequest struct {
	GetStatusRequest *GetStatusRequest `protobuf:"bytes,2,opt,name=get_status_request,json=getStatusRequest,proto3,oneof"`
}

type AggregatorServiceClient added in v0.0.990

type AggregatorServiceClient interface {
	Channel(ctx context.Context, opts ...grpc.CallOption) (AggregatorService_ChannelClient, error)
}

AggregatorServiceClient is the client API for AggregatorService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAggregatorServiceClient added in v0.0.990

func NewAggregatorServiceClient(cc grpc.ClientConnInterface) AggregatorServiceClient

type AggregatorServiceServer added in v0.0.990

type AggregatorServiceServer interface {
	Channel(AggregatorService_ChannelServer) error
	// contains filtered or unexported methods
}

AggregatorServiceServer is the server API for AggregatorService service. All implementations must embed UnimplementedAggregatorServiceServer for forward compatibility

type AggregatorService_ChannelClient added in v0.0.990

type AggregatorService_ChannelClient interface {
	Send(*ProverMessage) error
	Recv() (*AggregatorMessage, error)
	grpc.ClientStream
}

type AggregatorService_ChannelServer added in v0.0.990

type AggregatorService_ChannelServer interface {
	Send(*AggregatorMessage) error
	Recv() (*ProverMessage, error)
	grpc.ServerStream
}

type CancelRequest added in v0.0.990

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

* @dev CancelRequest @param {id} - identifier of the proof request to cancel

func (*CancelRequest) Descriptor deprecated added in v0.0.990

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

Deprecated: Use CancelRequest.ProtoReflect.Descriptor instead.

func (*CancelRequest) GetId added in v0.0.990

func (x *CancelRequest) GetId() string

func (*CancelRequest) ProtoMessage added in v0.0.990

func (*CancelRequest) ProtoMessage()

func (*CancelRequest) ProtoReflect added in v0.0.990

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

func (*CancelRequest) Reset added in v0.0.990

func (x *CancelRequest) Reset()

func (*CancelRequest) String added in v0.0.990

func (x *CancelRequest) String() string

type CancelResponse added in v0.0.990

type CancelResponse struct {
	Result Result `protobuf:"varint,1,opt,name=result,proto3,enum=aggregator.v1.Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

* @dev CancelResponse @param {result} - request result

func (*CancelResponse) Descriptor deprecated added in v0.0.990

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

Deprecated: Use CancelResponse.ProtoReflect.Descriptor instead.

func (*CancelResponse) GetResult added in v0.0.990

func (x *CancelResponse) GetResult() Result

func (*CancelResponse) ProtoMessage added in v0.0.990

func (*CancelResponse) ProtoMessage()

func (*CancelResponse) ProtoReflect added in v0.0.990

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

func (*CancelResponse) Reset added in v0.0.990

func (x *CancelResponse) Reset()

func (*CancelResponse) String added in v0.0.990

func (x *CancelResponse) String() string

type FinalProof added in v0.0.990

type FinalProof struct {
	Proof  string                `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	Public *PublicInputsExtended `protobuf:"bytes,2,opt,name=public,proto3" json:"public,omitempty"`
	// contains filtered or unexported fields
}

@dev FinalProof @param {proof} - groth16 proof @param {public} - public circuit inputs

func (*FinalProof) Descriptor deprecated added in v0.0.990

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

Deprecated: Use FinalProof.ProtoReflect.Descriptor instead.

func (*FinalProof) GetProof added in v0.0.990

func (x *FinalProof) GetProof() string

func (*FinalProof) GetPublic added in v0.0.990

func (x *FinalProof) GetPublic() *PublicInputsExtended

func (*FinalProof) ProtoMessage added in v0.0.990

func (*FinalProof) ProtoMessage()

func (*FinalProof) ProtoReflect added in v0.0.990

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

func (*FinalProof) Reset added in v0.0.990

func (x *FinalProof) Reset()

func (*FinalProof) String added in v0.0.990

func (x *FinalProof) String() string

type GenAggregatedProofRequest added in v0.0.990

type GenAggregatedProofRequest struct {
	RecursiveProof_1 string `protobuf:"bytes,1,opt,name=recursive_proof_1,json=recursiveProof1,proto3" json:"recursive_proof_1,omitempty"`
	RecursiveProof_2 string `protobuf:"bytes,2,opt,name=recursive_proof_2,json=recursiveProof2,proto3" json:"recursive_proof_2,omitempty"`
	// contains filtered or unexported fields
}

* @dev GenAggregatedProofRequest @param {recursive_proof_1} - proof json of the first batch to aggregate @param {recursive_proof_2} - proof json of the second batch to aggregate

func (*GenAggregatedProofRequest) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GenAggregatedProofRequest.ProtoReflect.Descriptor instead.

func (*GenAggregatedProofRequest) GetRecursiveProof_1 added in v0.0.990

func (x *GenAggregatedProofRequest) GetRecursiveProof_1() string

func (*GenAggregatedProofRequest) GetRecursiveProof_2 added in v0.0.990

func (x *GenAggregatedProofRequest) GetRecursiveProof_2() string

func (*GenAggregatedProofRequest) ProtoMessage added in v0.0.990

func (*GenAggregatedProofRequest) ProtoMessage()

func (*GenAggregatedProofRequest) ProtoReflect added in v0.0.990

func (*GenAggregatedProofRequest) Reset added in v0.0.990

func (x *GenAggregatedProofRequest) Reset()

func (*GenAggregatedProofRequest) String added in v0.0.990

func (x *GenAggregatedProofRequest) String() string

type GenAggregatedProofResponse added in v0.0.990

type GenAggregatedProofResponse struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Result Result `protobuf:"varint,2,opt,name=result,proto3,enum=aggregator.v1.Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

* @dev GenAggregatedProofResponse @param {id} - proof identifier, to be used in GetProofRequest() @param {result} - request result

func (*GenAggregatedProofResponse) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GenAggregatedProofResponse.ProtoReflect.Descriptor instead.

func (*GenAggregatedProofResponse) GetId added in v0.0.990

func (*GenAggregatedProofResponse) GetResult added in v0.0.990

func (x *GenAggregatedProofResponse) GetResult() Result

func (*GenAggregatedProofResponse) ProtoMessage added in v0.0.990

func (*GenAggregatedProofResponse) ProtoMessage()

func (*GenAggregatedProofResponse) ProtoReflect added in v0.0.990

func (*GenAggregatedProofResponse) Reset added in v0.0.990

func (x *GenAggregatedProofResponse) Reset()

func (*GenAggregatedProofResponse) String added in v0.0.990

func (x *GenAggregatedProofResponse) String() string

type GenBatchProofRequest added in v0.0.990

type GenBatchProofRequest struct {
	Input *InputProver `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

* @dev GenBatchProofRequest @param {input} - input prover

func (*GenBatchProofRequest) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GenBatchProofRequest.ProtoReflect.Descriptor instead.

func (*GenBatchProofRequest) GetInput added in v0.0.990

func (x *GenBatchProofRequest) GetInput() *InputProver

func (*GenBatchProofRequest) ProtoMessage added in v0.0.990

func (*GenBatchProofRequest) ProtoMessage()

func (*GenBatchProofRequest) ProtoReflect added in v0.0.990

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

func (*GenBatchProofRequest) Reset added in v0.0.990

func (x *GenBatchProofRequest) Reset()

func (*GenBatchProofRequest) String added in v0.0.990

func (x *GenBatchProofRequest) String() string

type GenBatchProofResponse added in v0.0.990

type GenBatchProofResponse struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Result Result `protobuf:"varint,2,opt,name=result,proto3,enum=aggregator.v1.Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

* @dev GenBatchProofResponse @param {id} - proof identifier, to be used in GetProofRequest() @param {result} - request result

func (*GenBatchProofResponse) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GenBatchProofResponse.ProtoReflect.Descriptor instead.

func (*GenBatchProofResponse) GetId added in v0.0.990

func (x *GenBatchProofResponse) GetId() string

func (*GenBatchProofResponse) GetResult added in v0.0.990

func (x *GenBatchProofResponse) GetResult() Result

func (*GenBatchProofResponse) ProtoMessage added in v0.0.990

func (*GenBatchProofResponse) ProtoMessage()

func (*GenBatchProofResponse) ProtoReflect added in v0.0.990

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

func (*GenBatchProofResponse) Reset added in v0.0.990

func (x *GenBatchProofResponse) Reset()

func (*GenBatchProofResponse) String added in v0.0.990

func (x *GenBatchProofResponse) String() string

type GenFinalProofRequest added in v0.0.990

type GenFinalProofRequest struct {
	RecursiveProof string `protobuf:"bytes,1,opt,name=recursive_proof,json=recursiveProof,proto3" json:"recursive_proof,omitempty"`
	AggregatorAddr string `protobuf:"bytes,2,opt,name=aggregator_addr,json=aggregatorAddr,proto3" json:"aggregator_addr,omitempty"`
	// contains filtered or unexported fields
}

* @dev GenFinalProofRequest @param {recursive_proof} - proof json of the batch or aggregated proof to finalise @param {aggregator_addr} - address of the aggregator

func (*GenFinalProofRequest) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GenFinalProofRequest.ProtoReflect.Descriptor instead.

func (*GenFinalProofRequest) GetAggregatorAddr added in v0.0.990

func (x *GenFinalProofRequest) GetAggregatorAddr() string

func (*GenFinalProofRequest) GetRecursiveProof added in v0.0.990

func (x *GenFinalProofRequest) GetRecursiveProof() string

func (*GenFinalProofRequest) ProtoMessage added in v0.0.990

func (*GenFinalProofRequest) ProtoMessage()

func (*GenFinalProofRequest) ProtoReflect added in v0.0.990

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

func (*GenFinalProofRequest) Reset added in v0.0.990

func (x *GenFinalProofRequest) Reset()

func (*GenFinalProofRequest) String added in v0.0.990

func (x *GenFinalProofRequest) String() string

type GenFinalProofResponse added in v0.0.990

type GenFinalProofResponse struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Result Result `protobuf:"varint,2,opt,name=result,proto3,enum=aggregator.v1.Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

* @dev Response GenFinalProof @param {id} - proof identifier, to be used in GetProofRequest() @param {result} - request result

func (*GenFinalProofResponse) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GenFinalProofResponse.ProtoReflect.Descriptor instead.

func (*GenFinalProofResponse) GetId added in v0.0.990

func (x *GenFinalProofResponse) GetId() string

func (*GenFinalProofResponse) GetResult added in v0.0.990

func (x *GenFinalProofResponse) GetResult() Result

func (*GenFinalProofResponse) ProtoMessage added in v0.0.990

func (*GenFinalProofResponse) ProtoMessage()

func (*GenFinalProofResponse) ProtoReflect added in v0.0.990

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

func (*GenFinalProofResponse) Reset added in v0.0.990

func (x *GenFinalProofResponse) Reset()

func (*GenFinalProofResponse) String added in v0.0.990

func (x *GenFinalProofResponse) String() string

type GetProofRequest added in v0.0.990

type GetProofRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Timeout uint64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

* @dev Request GetProof @param {id} - proof identifier of the proof request @param {timeout} - time to wait until the service responds

func (*GetProofRequest) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GetProofRequest.ProtoReflect.Descriptor instead.

func (*GetProofRequest) GetId added in v0.0.990

func (x *GetProofRequest) GetId() string

func (*GetProofRequest) GetTimeout added in v0.0.990

func (x *GetProofRequest) GetTimeout() uint64

func (*GetProofRequest) ProtoMessage added in v0.0.990

func (*GetProofRequest) ProtoMessage()

func (*GetProofRequest) ProtoReflect added in v0.0.990

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

func (*GetProofRequest) Reset added in v0.0.990

func (x *GetProofRequest) Reset()

func (*GetProofRequest) String added in v0.0.990

func (x *GetProofRequest) String() string

type GetProofResponse added in v0.0.990

type GetProofResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Proof:
	//
	//	*GetProofResponse_FinalProof
	//	*GetProofResponse_RecursiveProof
	Proof        isGetProofResponse_Proof `protobuf_oneof:"proof"`
	Result       GetProofResponse_Result  `protobuf:"varint,4,opt,name=result,proto3,enum=aggregator.v1.GetProofResponse_Result" json:"result,omitempty"`
	ResultString string                   `protobuf:"bytes,5,opt,name=result_string,json=resultString,proto3" json:"result_string,omitempty"`
	// contains filtered or unexported fields
}

* @dev GetProofResponse @param {id} - proof identifier @param {final_proof} - groth16 proof + public circuit inputs @param {recursive_proof} - recursive proof json @param {result} - proof result

  • COMPLETED_OK: proof has been computed successfully and it is valid
  • ERROR: request error
  • COMPLETED_ERROR: proof has been computed successfully and it is not valid
  • PENDING: proof is being computed
  • INTERNAL_ERROR: server error during proof computation
  • CANCEL: proof has been cancelled

@param {result_string} - extends result information

func (*GetProofResponse) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GetProofResponse.ProtoReflect.Descriptor instead.

func (*GetProofResponse) GetFinalProof added in v0.0.990

func (x *GetProofResponse) GetFinalProof() *FinalProof

func (*GetProofResponse) GetId added in v0.0.990

func (x *GetProofResponse) GetId() string

func (*GetProofResponse) GetProof added in v0.0.990

func (m *GetProofResponse) GetProof() isGetProofResponse_Proof

func (*GetProofResponse) GetRecursiveProof added in v0.0.990

func (x *GetProofResponse) GetRecursiveProof() string

func (*GetProofResponse) GetResult added in v0.0.990

func (*GetProofResponse) GetResultString added in v0.0.990

func (x *GetProofResponse) GetResultString() string

func (*GetProofResponse) ProtoMessage added in v0.0.990

func (*GetProofResponse) ProtoMessage()

func (*GetProofResponse) ProtoReflect added in v0.0.990

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

func (*GetProofResponse) Reset added in v0.0.990

func (x *GetProofResponse) Reset()

func (*GetProofResponse) String added in v0.0.990

func (x *GetProofResponse) String() string

type GetProofResponse_FinalProof added in v0.0.990

type GetProofResponse_FinalProof struct {
	FinalProof *FinalProof `protobuf:"bytes,2,opt,name=final_proof,json=finalProof,proto3,oneof"`
}

type GetProofResponse_RecursiveProof added in v0.0.990

type GetProofResponse_RecursiveProof struct {
	RecursiveProof string `protobuf:"bytes,3,opt,name=recursive_proof,json=recursiveProof,proto3,oneof"`
}

type GetProofResponse_Result added in v0.0.990

type GetProofResponse_Result int32
const (
	GetProofResponse_RESULT_UNSPECIFIED     GetProofResponse_Result = 0
	GetProofResponse_RESULT_COMPLETED_OK    GetProofResponse_Result = 1
	GetProofResponse_RESULT_ERROR           GetProofResponse_Result = 2
	GetProofResponse_RESULT_COMPLETED_ERROR GetProofResponse_Result = 3
	GetProofResponse_RESULT_PENDING         GetProofResponse_Result = 4
	GetProofResponse_RESULT_INTERNAL_ERROR  GetProofResponse_Result = 5
	GetProofResponse_RESULT_CANCEL          GetProofResponse_Result = 6
)

func (GetProofResponse_Result) Descriptor added in v0.0.990

func (GetProofResponse_Result) Enum added in v0.0.990

func (GetProofResponse_Result) EnumDescriptor deprecated added in v0.0.990

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

Deprecated: Use GetProofResponse_Result.Descriptor instead.

func (GetProofResponse_Result) Number added in v0.0.990

func (GetProofResponse_Result) String added in v0.0.990

func (x GetProofResponse_Result) String() string

func (GetProofResponse_Result) Type added in v0.0.990

type GetStatusRequest added in v0.0.990

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

* @dev GetStatusRequest

func (*GetStatusRequest) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.

func (*GetStatusRequest) ProtoMessage added in v0.0.990

func (*GetStatusRequest) ProtoMessage()

func (*GetStatusRequest) ProtoReflect added in v0.0.990

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

func (*GetStatusRequest) Reset added in v0.0.990

func (x *GetStatusRequest) Reset()

func (*GetStatusRequest) String added in v0.0.990

func (x *GetStatusRequest) String() string

type GetStatusResponse added in v0.0.990

type GetStatusResponse struct {
	Status                    GetStatusResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=aggregator.v1.GetStatusResponse_Status" json:"status,omitempty"`
	LastComputedRequestId     string                   `` /* 128-byte string literal not displayed */
	LastComputedEndTime       uint64                   `protobuf:"varint,3,opt,name=last_computed_end_time,json=lastComputedEndTime,proto3" json:"last_computed_end_time,omitempty"`
	CurrentComputingRequestId string                   `` /* 140-byte string literal not displayed */
	CurrentComputingStartTime uint64                   `` /* 141-byte string literal not displayed */
	VersionProto              string                   `protobuf:"bytes,6,opt,name=version_proto,json=versionProto,proto3" json:"version_proto,omitempty"`
	VersionServer             string                   `protobuf:"bytes,7,opt,name=version_server,json=versionServer,proto3" json:"version_server,omitempty"`
	PendingRequestQueueIds    []string                 `` /* 131-byte string literal not displayed */
	ProverName                string                   `protobuf:"bytes,9,opt,name=prover_name,json=proverName,proto3" json:"prover_name,omitempty"`
	ProverId                  string                   `protobuf:"bytes,10,opt,name=prover_id,json=proverId,proto3" json:"prover_id,omitempty"`
	NumberOfCores             uint64                   `protobuf:"varint,11,opt,name=number_of_cores,json=numberOfCores,proto3" json:"number_of_cores,omitempty"`
	TotalMemory               uint64                   `protobuf:"varint,12,opt,name=total_memory,json=totalMemory,proto3" json:"total_memory,omitempty"`
	FreeMemory                uint64                   `protobuf:"varint,13,opt,name=free_memory,json=freeMemory,proto3" json:"free_memory,omitempty"`
	ForkId                    uint64                   `protobuf:"varint,14,opt,name=fork_id,json=forkId,proto3" json:"fork_id,omitempty"`
	// contains filtered or unexported fields
}

* @dev Response GetStatus @param {status} - server status - BOOTING: being ready to compute proofs - COMPUTING: busy computing a proof - IDLE: waiting for a proof to compute - HALT: stop @param {last_computed_request_id} - last proof identifier that has been computed @param {last_computed_end_time} - last proof timestamp when it was finished @param {current_computing_request_id} - id of the proof that is being computed @param {current_computing_start_time} - timestamp when the proof that is being computed started @param {version_proto} - .proto verion @param {version_server} - server version @param {pending_request_queue_ids} - list of identifierss of proof requests that are in the pending queue @param {prover_name} - id of this prover server, normally specified via config.json, or UNSPECIFIED otherwise; it does not change if prover reboots @param {prover_id} - id of this prover instance or reboot; it changes if prover reboots; it is a UUID, automatically generated during the initialization @param {number_of_cores} - number of cores in the system where the prover is running @param {total_memory} - total memory in the system where the prover is running @param {free_memory} - free memory in the system where the prover is running

func (*GetStatusResponse) Descriptor deprecated added in v0.0.990

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

Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.

func (*GetStatusResponse) GetCurrentComputingRequestId added in v0.0.990

func (x *GetStatusResponse) GetCurrentComputingRequestId() string

func (*GetStatusResponse) GetCurrentComputingStartTime added in v0.0.990

func (x *GetStatusResponse) GetCurrentComputingStartTime() uint64

func (*GetStatusResponse) GetForkId added in v0.0.990

func (x *GetStatusResponse) GetForkId() uint64

func (*GetStatusResponse) GetFreeMemory added in v0.0.990

func (x *GetStatusResponse) GetFreeMemory() uint64

func (*GetStatusResponse) GetLastComputedEndTime added in v0.0.990

func (x *GetStatusResponse) GetLastComputedEndTime() uint64

func (*GetStatusResponse) GetLastComputedRequestId added in v0.0.990

func (x *GetStatusResponse) GetLastComputedRequestId() string

func (*GetStatusResponse) GetNumberOfCores added in v0.0.990

func (x *GetStatusResponse) GetNumberOfCores() uint64

func (*GetStatusResponse) GetPendingRequestQueueIds added in v0.0.990

func (x *GetStatusResponse) GetPendingRequestQueueIds() []string

func (*GetStatusResponse) GetProverId added in v0.0.990

func (x *GetStatusResponse) GetProverId() string

func (*GetStatusResponse) GetProverName added in v0.0.990

func (x *GetStatusResponse) GetProverName() string

func (*GetStatusResponse) GetStatus added in v0.0.990

func (*GetStatusResponse) GetTotalMemory added in v0.0.990

func (x *GetStatusResponse) GetTotalMemory() uint64

func (*GetStatusResponse) GetVersionProto added in v0.0.990

func (x *GetStatusResponse) GetVersionProto() string

func (*GetStatusResponse) GetVersionServer added in v0.0.990

func (x *GetStatusResponse) GetVersionServer() string

func (*GetStatusResponse) ProtoMessage added in v0.0.990

func (*GetStatusResponse) ProtoMessage()

func (*GetStatusResponse) ProtoReflect added in v0.0.990

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

func (*GetStatusResponse) Reset added in v0.0.990

func (x *GetStatusResponse) Reset()

func (*GetStatusResponse) String added in v0.0.990

func (x *GetStatusResponse) String() string

type GetStatusResponse_Status added in v0.0.990

type GetStatusResponse_Status int32
const (
	GetStatusResponse_STATUS_UNSPECIFIED GetStatusResponse_Status = 0
	GetStatusResponse_STATUS_BOOTING     GetStatusResponse_Status = 1
	GetStatusResponse_STATUS_COMPUTING   GetStatusResponse_Status = 2
	GetStatusResponse_STATUS_IDLE        GetStatusResponse_Status = 3
	GetStatusResponse_STATUS_HALT        GetStatusResponse_Status = 4
)

func (GetStatusResponse_Status) Descriptor added in v0.0.990

func (GetStatusResponse_Status) Enum added in v0.0.990

func (GetStatusResponse_Status) EnumDescriptor deprecated added in v0.0.990

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

Deprecated: Use GetStatusResponse_Status.Descriptor instead.

func (GetStatusResponse_Status) Number added in v0.0.990

func (GetStatusResponse_Status) String added in v0.0.990

func (x GetStatusResponse_Status) String() string

func (GetStatusResponse_Status) Type added in v0.0.990

type InputProver added in v0.0.990

type InputProver struct {
	PublicInputs *PublicInputs     `protobuf:"bytes,1,opt,name=public_inputs,json=publicInputs,proto3" json:"public_inputs,omitempty"`
	Db           map[string]string `` // For debug/testing purpposes only. Don't fill this on production
	/* 145-byte string literal not displayed */
	ContractsBytecode map[string]string `` // For debug/testing purpposes only. Don't fill this on production
	/* 200-byte string literal not displayed */
	// contains filtered or unexported fields
}

* @dev InputProver @param {public_inputs} - public inputs @param {db} - database containing all key-values in smt matching the old state root @param {contracts_bytecode} - key is the hash(contractBytecode), value is the bytecode itself

func (*InputProver) Descriptor deprecated added in v0.0.990

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

Deprecated: Use InputProver.ProtoReflect.Descriptor instead.

func (*InputProver) GetContractsBytecode added in v0.0.990

func (x *InputProver) GetContractsBytecode() map[string]string

func (*InputProver) GetDb added in v0.0.990

func (x *InputProver) GetDb() map[string]string

func (*InputProver) GetPublicInputs added in v0.0.990

func (x *InputProver) GetPublicInputs() *PublicInputs

func (*InputProver) ProtoMessage added in v0.0.990

func (*InputProver) ProtoMessage()

func (*InputProver) ProtoReflect added in v0.0.990

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

func (*InputProver) Reset added in v0.0.990

func (x *InputProver) Reset()

func (*InputProver) String added in v0.0.990

func (x *InputProver) String() string

type L1Data added in v0.5.0

type L1Data struct {
	GlobalExitRoot []byte   `protobuf:"bytes,1,opt,name=global_exit_root,json=globalExitRoot,proto3" json:"global_exit_root,omitempty"`
	BlockhashL1    []byte   `protobuf:"bytes,2,opt,name=blockhash_l1,json=blockhashL1,proto3" json:"blockhash_l1,omitempty"`
	MinTimestamp   uint32   `protobuf:"varint,3,opt,name=min_timestamp,json=minTimestamp,proto3" json:"min_timestamp,omitempty"`
	SmtProof       [][]byte `protobuf:"bytes,4,rep,name=smt_proof,json=smtProof,proto3" json:"smt_proof,omitempty"`
	// contains filtered or unexported fields
}

l1InfoTree leaf values

func (*L1Data) Descriptor deprecated added in v0.5.0

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

Deprecated: Use L1Data.ProtoReflect.Descriptor instead.

func (*L1Data) GetBlockhashL1 added in v0.5.0

func (x *L1Data) GetBlockhashL1() []byte

func (*L1Data) GetGlobalExitRoot added in v0.5.0

func (x *L1Data) GetGlobalExitRoot() []byte

func (*L1Data) GetMinTimestamp added in v0.5.0

func (x *L1Data) GetMinTimestamp() uint32

func (*L1Data) GetSmtProof added in v0.5.0

func (x *L1Data) GetSmtProof() [][]byte

func (*L1Data) ProtoMessage added in v0.5.0

func (*L1Data) ProtoMessage()

func (*L1Data) ProtoReflect added in v0.5.0

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

func (*L1Data) Reset added in v0.5.0

func (x *L1Data) Reset()

func (*L1Data) String added in v0.5.0

func (x *L1Data) String() string

type Prover

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

Prover abstraction of the grpc prover client.

func New

func New(stream AggregatorService_ChannelServer, addr net.Addr, proofStatePollingInterval types.Duration) (*Prover, error)

New returns a new Prover instance.

func (*Prover) Addr

func (p *Prover) Addr() string

Addr returns the prover IP address.

func (*Prover) AggregatedProof

func (p *Prover) AggregatedProof(inputProof1, inputProof2 string) (*string, error)

AggregatedProof instructs the prover to generate an aggregated proof from the two inputs provided. It returns the ID of the proof being computed.

func (*Prover) BatchProof

func (p *Prover) BatchProof(input *InputProver) (*string, error)

BatchProof instructs the prover to generate a batch proof for the provided input. It returns the ID of the proof being computed.

func (*Prover) CancelProofRequest

func (p *Prover) CancelProofRequest(proofID string) error

CancelProofRequest asks the prover to stop the generation of the proof matching the provided proofID.

func (*Prover) FinalProof

func (p *Prover) FinalProof(inputProof string, aggregatorAddr string) (*string, error)

FinalProof instructs the prover to generate a final proof for the given input. It returns the ID of the proof being computed.

func (*Prover) ID

func (p *Prover) ID() string

ID returns the Prover ID.

func (*Prover) IsIdle

func (p *Prover) IsIdle() (bool, error)

IsIdle returns true if the prover is idling.

func (*Prover) Name

func (p *Prover) Name() string

Name returns the Prover name.

func (*Prover) Status

func (p *Prover) Status() (*GetStatusResponse, error)

Status gets the prover status.

func (*Prover) SupportsForkID

func (p *Prover) SupportsForkID(forkID uint64) bool

SupportsForkID returns true if the prover supports the given fork id.

func (*Prover) WaitFinalProof

func (p *Prover) WaitFinalProof(ctx context.Context, proofID string) (*FinalProof, error)

WaitFinalProof waits for the final proof to be generated by the prover and returns it.

func (*Prover) WaitRecursiveProof

func (p *Prover) WaitRecursiveProof(ctx context.Context, proofID string) (string, error)

WaitRecursiveProof waits for a recursive proof to be generated by the prover and returns it.

type ProverMessage added in v0.0.990

type ProverMessage struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Response:
	//
	//	*ProverMessage_GetStatusResponse
	//	*ProverMessage_GenBatchProofResponse
	//	*ProverMessage_GenAggregatedProofResponse
	//	*ProverMessage_GenFinalProofResponse
	//	*ProverMessage_CancelResponse
	//	*ProverMessage_GetProofResponse
	Response isProverMessage_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ProverMessage) Descriptor deprecated added in v0.0.990

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

Deprecated: Use ProverMessage.ProtoReflect.Descriptor instead.

func (*ProverMessage) GetCancelResponse added in v0.0.990

func (x *ProverMessage) GetCancelResponse() *CancelResponse

func (*ProverMessage) GetGenAggregatedProofResponse added in v0.0.990

func (x *ProverMessage) GetGenAggregatedProofResponse() *GenAggregatedProofResponse

func (*ProverMessage) GetGenBatchProofResponse added in v0.0.990

func (x *ProverMessage) GetGenBatchProofResponse() *GenBatchProofResponse

func (*ProverMessage) GetGenFinalProofResponse added in v0.0.990

func (x *ProverMessage) GetGenFinalProofResponse() *GenFinalProofResponse

func (*ProverMessage) GetGetProofResponse added in v0.0.990

func (x *ProverMessage) GetGetProofResponse() *GetProofResponse

func (*ProverMessage) GetGetStatusResponse added in v0.0.990

func (x *ProverMessage) GetGetStatusResponse() *GetStatusResponse

func (*ProverMessage) GetId added in v0.0.990

func (x *ProverMessage) GetId() string

func (*ProverMessage) GetResponse added in v0.0.990

func (m *ProverMessage) GetResponse() isProverMessage_Response

func (*ProverMessage) ProtoMessage added in v0.0.990

func (*ProverMessage) ProtoMessage()

func (*ProverMessage) ProtoReflect added in v0.0.990

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

func (*ProverMessage) Reset added in v0.0.990

func (x *ProverMessage) Reset()

func (*ProverMessage) String added in v0.0.990

func (x *ProverMessage) String() string

type ProverMessage_CancelResponse added in v0.0.990

type ProverMessage_CancelResponse struct {
	CancelResponse *CancelResponse `protobuf:"bytes,6,opt,name=cancel_response,json=cancelResponse,proto3,oneof"`
}

type ProverMessage_GenAggregatedProofResponse added in v0.0.990

type ProverMessage_GenAggregatedProofResponse struct {
	GenAggregatedProofResponse *GenAggregatedProofResponse `protobuf:"bytes,4,opt,name=gen_aggregated_proof_response,json=genAggregatedProofResponse,proto3,oneof"`
}

type ProverMessage_GenBatchProofResponse added in v0.0.990

type ProverMessage_GenBatchProofResponse struct {
	GenBatchProofResponse *GenBatchProofResponse `protobuf:"bytes,3,opt,name=gen_batch_proof_response,json=genBatchProofResponse,proto3,oneof"`
}

type ProverMessage_GenFinalProofResponse added in v0.0.990

type ProverMessage_GenFinalProofResponse struct {
	GenFinalProofResponse *GenFinalProofResponse `protobuf:"bytes,5,opt,name=gen_final_proof_response,json=genFinalProofResponse,proto3,oneof"`
}

type ProverMessage_GetProofResponse added in v0.0.990

type ProverMessage_GetProofResponse struct {
	GetProofResponse *GetProofResponse `protobuf:"bytes,7,opt,name=get_proof_response,json=getProofResponse,proto3,oneof"`
}

type ProverMessage_GetStatusResponse added in v0.0.990

type ProverMessage_GetStatusResponse struct {
	GetStatusResponse *GetStatusResponse `protobuf:"bytes,2,opt,name=get_status_response,json=getStatusResponse,proto3,oneof"`
}

type PublicInputs added in v0.0.990

type PublicInputs struct {
	OldStateRoot      []byte             `protobuf:"bytes,1,opt,name=old_state_root,json=oldStateRoot,proto3" json:"old_state_root,omitempty"`
	OldAccInputHash   []byte             `protobuf:"bytes,2,opt,name=old_acc_input_hash,json=oldAccInputHash,proto3" json:"old_acc_input_hash,omitempty"`
	OldBatchNum       uint64             `protobuf:"varint,3,opt,name=old_batch_num,json=oldBatchNum,proto3" json:"old_batch_num,omitempty"`
	ChainId           uint64             `protobuf:"varint,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ForkId            uint64             `protobuf:"varint,5,opt,name=fork_id,json=forkId,proto3" json:"fork_id,omitempty"`
	BatchL2Data       []byte             `protobuf:"bytes,6,opt,name=batch_l2_data,json=batchL2Data,proto3" json:"batch_l2_data,omitempty"`
	L1InfoRoot        []byte             `protobuf:"bytes,7,opt,name=l1_info_root,json=l1InfoRoot,proto3" json:"l1_info_root,omitempty"`
	TimestampLimit    uint64             `protobuf:"varint,8,opt,name=timestamp_limit,json=timestampLimit,proto3" json:"timestamp_limit,omitempty"`
	SequencerAddr     string             `protobuf:"bytes,9,opt,name=sequencer_addr,json=sequencerAddr,proto3" json:"sequencer_addr,omitempty"`
	ForcedBlockhashL1 []byte             `protobuf:"bytes,10,opt,name=forced_blockhash_l1,json=forcedBlockhashL1,proto3" json:"forced_blockhash_l1,omitempty"`
	AggregatorAddr    string             `protobuf:"bytes,12,opt,name=aggregator_addr,json=aggregatorAddr,proto3" json:"aggregator_addr,omitempty"`
	L1InfoTreeData    map[uint32]*L1Data `` /* 197-byte string literal not displayed */
	// contains filtered or unexported fields
}

@dev PublicInputs @param {old_state_root} @param {old_acc_input_hash} @param {old_batch_num} @param {chain_id} @param {batch_l2_data} @param {global_exit_root} @param {sequencer_addr} @param {aggregator_addr}

func (*PublicInputs) Descriptor deprecated added in v0.0.990

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

Deprecated: Use PublicInputs.ProtoReflect.Descriptor instead.

func (*PublicInputs) GetAggregatorAddr added in v0.0.990

func (x *PublicInputs) GetAggregatorAddr() string

func (*PublicInputs) GetBatchL2Data added in v0.0.990

func (x *PublicInputs) GetBatchL2Data() []byte

func (*PublicInputs) GetChainId added in v0.0.990

func (x *PublicInputs) GetChainId() uint64

func (*PublicInputs) GetForcedBlockhashL1 added in v0.5.0

func (x *PublicInputs) GetForcedBlockhashL1() []byte

func (*PublicInputs) GetForkId added in v0.0.990

func (x *PublicInputs) GetForkId() uint64

func (*PublicInputs) GetL1InfoRoot added in v0.5.0

func (x *PublicInputs) GetL1InfoRoot() []byte

func (*PublicInputs) GetL1InfoTreeData added in v0.5.0

func (x *PublicInputs) GetL1InfoTreeData() map[uint32]*L1Data

func (*PublicInputs) GetOldAccInputHash added in v0.0.990

func (x *PublicInputs) GetOldAccInputHash() []byte

func (*PublicInputs) GetOldBatchNum added in v0.0.990

func (x *PublicInputs) GetOldBatchNum() uint64

func (*PublicInputs) GetOldStateRoot added in v0.0.990

func (x *PublicInputs) GetOldStateRoot() []byte

func (*PublicInputs) GetSequencerAddr added in v0.0.990

func (x *PublicInputs) GetSequencerAddr() string

func (*PublicInputs) GetTimestampLimit added in v0.5.0

func (x *PublicInputs) GetTimestampLimit() uint64

func (*PublicInputs) ProtoMessage added in v0.0.990

func (*PublicInputs) ProtoMessage()

func (*PublicInputs) ProtoReflect added in v0.0.990

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

func (*PublicInputs) Reset added in v0.0.990

func (x *PublicInputs) Reset()

func (*PublicInputs) String added in v0.0.990

func (x *PublicInputs) String() string

type PublicInputsExtended added in v0.0.990

type PublicInputsExtended struct {
	PublicInputs     *PublicInputs `protobuf:"bytes,1,opt,name=public_inputs,json=publicInputs,proto3" json:"public_inputs,omitempty"`
	NewStateRoot     []byte        `protobuf:"bytes,2,opt,name=new_state_root,json=newStateRoot,proto3" json:"new_state_root,omitempty"`
	NewAccInputHash  []byte        `protobuf:"bytes,3,opt,name=new_acc_input_hash,json=newAccInputHash,proto3" json:"new_acc_input_hash,omitempty"`
	NewLocalExitRoot []byte        `protobuf:"bytes,4,opt,name=new_local_exit_root,json=newLocalExitRoot,proto3" json:"new_local_exit_root,omitempty"`
	NewBatchNum      uint64        `protobuf:"varint,5,opt,name=new_batch_num,json=newBatchNum,proto3" json:"new_batch_num,omitempty"`
	// contains filtered or unexported fields
}

* @dev PublicInputsExtended @param {public_inputs} - public inputs @param {new_state_root} - final state root. Used as a sanity check. @param {new_acc_input_hash} - final accumulate input hash. Used as a sanity check. @param {new_local_exit_root} - new local exit root. Used as a sanity check. @param {new_batch_num} - final num batch. Used as a sanity check.

func (*PublicInputsExtended) Descriptor deprecated added in v0.0.990

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

Deprecated: Use PublicInputsExtended.ProtoReflect.Descriptor instead.

func (*PublicInputsExtended) GetNewAccInputHash added in v0.0.990

func (x *PublicInputsExtended) GetNewAccInputHash() []byte

func (*PublicInputsExtended) GetNewBatchNum added in v0.0.990

func (x *PublicInputsExtended) GetNewBatchNum() uint64

func (*PublicInputsExtended) GetNewLocalExitRoot added in v0.0.990

func (x *PublicInputsExtended) GetNewLocalExitRoot() []byte

func (*PublicInputsExtended) GetNewStateRoot added in v0.0.990

func (x *PublicInputsExtended) GetNewStateRoot() []byte

func (*PublicInputsExtended) GetPublicInputs added in v0.0.990

func (x *PublicInputsExtended) GetPublicInputs() *PublicInputs

func (*PublicInputsExtended) ProtoMessage added in v0.0.990

func (*PublicInputsExtended) ProtoMessage()

func (*PublicInputsExtended) ProtoReflect added in v0.0.990

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

func (*PublicInputsExtended) Reset added in v0.0.990

func (x *PublicInputsExtended) Reset()

func (*PublicInputsExtended) String added in v0.0.990

func (x *PublicInputsExtended) String() string

type Result added in v0.0.990

type Result int32

* @dev Result

  • OK: succesfully completed
  • ERROR: request is not correct, i.e. input data is wrong
  • INTERNAL_ERROR: internal server error when delivering the response
const (
	Result_RESULT_UNSPECIFIED    Result = 0
	Result_RESULT_OK             Result = 1
	Result_RESULT_ERROR          Result = 2
	Result_RESULT_INTERNAL_ERROR Result = 3
)

func (Result) Descriptor added in v0.0.990

func (Result) Descriptor() protoreflect.EnumDescriptor

func (Result) Enum added in v0.0.990

func (x Result) Enum() *Result

func (Result) EnumDescriptor deprecated added in v0.0.990

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

Deprecated: Use Result.Descriptor instead.

func (Result) Number added in v0.0.990

func (x Result) Number() protoreflect.EnumNumber

func (Result) String added in v0.0.990

func (x Result) String() string

func (Result) Type added in v0.0.990

func (Result) Type() protoreflect.EnumType

type UnimplementedAggregatorServiceServer added in v0.0.990

type UnimplementedAggregatorServiceServer struct {
}

UnimplementedAggregatorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAggregatorServiceServer) Channel added in v0.0.990

type UnsafeAggregatorServiceServer added in v0.0.990

type UnsafeAggregatorServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAggregatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AggregatorServiceServer will result in compilation errors.

type Version added in v0.0.990

type Version struct {
	V0_0_1 string `protobuf:"bytes,1,opt,name=v0_0_1,json=v001,proto3" json:"v0_0_1,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated added in v0.0.990

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetV0_0_1 added in v0.0.990

func (x *Version) GetV0_0_1() string

func (*Version) ProtoMessage added in v0.0.990

func (*Version) ProtoMessage()

func (*Version) ProtoReflect added in v0.0.990

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

func (*Version) Reset added in v0.0.990

func (x *Version) Reset()

func (*Version) String added in v0.0.990

func (x *Version) String() string

Jump to

Keyboard shortcuts

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