custodyv1

package
v9.0.0-...-e599657 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCustody        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCustody          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCustody = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterCustodyServiceServer

func RegisterCustodyServiceServer(s grpc1.Server, srv CustodyServiceServer)

Types

type AuthorizeRequest

type AuthorizeRequest struct {
	// The transaction plan to authorize.
	Plan *v1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
	// Optionally, pre-authorization data, if required by the custodian.
	//
	// Pre-authorization data is backend-specific, and backends are free to ignore it.
	//
	// Multiple `PreAuthorization` packets can be included in a single request,
	// to support multi-party pre-authorizations.
	PreAuthorizations []*PreAuthorization `protobuf:"bytes,3,rep,name=pre_authorizations,json=preAuthorizations,proto3" json:"pre_authorizations,omitempty"`
}

func (*AuthorizeRequest) Descriptor

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

func (*AuthorizeRequest) GetPlan

func (m *AuthorizeRequest) GetPlan() *v1.TransactionPlan

func (*AuthorizeRequest) GetPreAuthorizations

func (m *AuthorizeRequest) GetPreAuthorizations() []*PreAuthorization

func (*AuthorizeRequest) Marshal

func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error)

func (*AuthorizeRequest) MarshalTo

func (m *AuthorizeRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthorizeRequest) MarshalToSizedBuffer

func (m *AuthorizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthorizeRequest) ProtoMessage

func (*AuthorizeRequest) ProtoMessage()

func (*AuthorizeRequest) Reset

func (m *AuthorizeRequest) Reset()

func (*AuthorizeRequest) Size

func (m *AuthorizeRequest) Size() (n int)

func (*AuthorizeRequest) String

func (m *AuthorizeRequest) String() string

func (*AuthorizeRequest) Unmarshal

func (m *AuthorizeRequest) Unmarshal(dAtA []byte) error

func (*AuthorizeRequest) XXX_DiscardUnknown

func (m *AuthorizeRequest) XXX_DiscardUnknown()

func (*AuthorizeRequest) XXX_Marshal

func (m *AuthorizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeRequest) XXX_Merge

func (m *AuthorizeRequest) XXX_Merge(src proto.Message)

func (*AuthorizeRequest) XXX_Size

func (m *AuthorizeRequest) XXX_Size() int

func (*AuthorizeRequest) XXX_Unmarshal

func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error

type AuthorizeResponse

type AuthorizeResponse struct {
	Data *v1.AuthorizationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*AuthorizeResponse) Descriptor

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

func (*AuthorizeResponse) GetData

func (m *AuthorizeResponse) GetData() *v1.AuthorizationData

func (*AuthorizeResponse) Marshal

func (m *AuthorizeResponse) Marshal() (dAtA []byte, err error)

func (*AuthorizeResponse) MarshalTo

func (m *AuthorizeResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthorizeResponse) MarshalToSizedBuffer

func (m *AuthorizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthorizeResponse) ProtoMessage

func (*AuthorizeResponse) ProtoMessage()

func (*AuthorizeResponse) Reset

func (m *AuthorizeResponse) Reset()

func (*AuthorizeResponse) Size

func (m *AuthorizeResponse) Size() (n int)

func (*AuthorizeResponse) String

func (m *AuthorizeResponse) String() string

func (*AuthorizeResponse) Unmarshal

func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error

func (*AuthorizeResponse) XXX_DiscardUnknown

func (m *AuthorizeResponse) XXX_DiscardUnknown()

func (*AuthorizeResponse) XXX_Marshal

func (m *AuthorizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeResponse) XXX_Merge

func (m *AuthorizeResponse) XXX_Merge(src proto.Message)

func (*AuthorizeResponse) XXX_Size

func (m *AuthorizeResponse) XXX_Size() int

func (*AuthorizeResponse) XXX_Unmarshal

func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error

type AuthorizeValidatorDefinitionRequest

type AuthorizeValidatorDefinitionRequest struct {
	// The validator definition to authorize.
	ValidatorDefinition *v11.Validator `protobuf:"bytes,1,opt,name=validator_definition,json=validatorDefinition,proto3" json:"validator_definition,omitempty"`
	// Optionally, pre-authorization data, if required by the custodian.
	//
	// Pre-authorization data is backend-specific, and backends are free to ignore it.
	//
	// Multiple `PreAuthorization` packets can be included in a single request,
	// to support multi-party pre-authorizations.
	PreAuthorizations []*PreAuthorization `protobuf:"bytes,3,rep,name=pre_authorizations,json=preAuthorizations,proto3" json:"pre_authorizations,omitempty"`
}

func (*AuthorizeValidatorDefinitionRequest) Descriptor

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

func (*AuthorizeValidatorDefinitionRequest) GetPreAuthorizations

func (m *AuthorizeValidatorDefinitionRequest) GetPreAuthorizations() []*PreAuthorization

func (*AuthorizeValidatorDefinitionRequest) GetValidatorDefinition

func (m *AuthorizeValidatorDefinitionRequest) GetValidatorDefinition() *v11.Validator

func (*AuthorizeValidatorDefinitionRequest) Marshal

func (m *AuthorizeValidatorDefinitionRequest) Marshal() (dAtA []byte, err error)

func (*AuthorizeValidatorDefinitionRequest) MarshalTo

func (m *AuthorizeValidatorDefinitionRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthorizeValidatorDefinitionRequest) MarshalToSizedBuffer

func (m *AuthorizeValidatorDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthorizeValidatorDefinitionRequest) ProtoMessage

func (*AuthorizeValidatorDefinitionRequest) ProtoMessage()

func (*AuthorizeValidatorDefinitionRequest) Reset

func (*AuthorizeValidatorDefinitionRequest) Size

func (*AuthorizeValidatorDefinitionRequest) String

func (*AuthorizeValidatorDefinitionRequest) Unmarshal

func (m *AuthorizeValidatorDefinitionRequest) Unmarshal(dAtA []byte) error

func (*AuthorizeValidatorDefinitionRequest) XXX_DiscardUnknown

func (m *AuthorizeValidatorDefinitionRequest) XXX_DiscardUnknown()

func (*AuthorizeValidatorDefinitionRequest) XXX_Marshal

func (m *AuthorizeValidatorDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeValidatorDefinitionRequest) XXX_Merge

func (*AuthorizeValidatorDefinitionRequest) XXX_Size

func (*AuthorizeValidatorDefinitionRequest) XXX_Unmarshal

func (m *AuthorizeValidatorDefinitionRequest) XXX_Unmarshal(b []byte) error

type AuthorizeValidatorDefinitionResponse

type AuthorizeValidatorDefinitionResponse struct {
	// The authorization signature for the validator definition.
	ValidatorDefinitionAuth *v12.SpendAuthSignature `` /* 132-byte string literal not displayed */
}

func (*AuthorizeValidatorDefinitionResponse) Descriptor

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

func (*AuthorizeValidatorDefinitionResponse) GetValidatorDefinitionAuth

func (m *AuthorizeValidatorDefinitionResponse) GetValidatorDefinitionAuth() *v12.SpendAuthSignature

func (*AuthorizeValidatorDefinitionResponse) Marshal

func (m *AuthorizeValidatorDefinitionResponse) Marshal() (dAtA []byte, err error)

func (*AuthorizeValidatorDefinitionResponse) MarshalTo

func (m *AuthorizeValidatorDefinitionResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthorizeValidatorDefinitionResponse) MarshalToSizedBuffer

func (m *AuthorizeValidatorDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthorizeValidatorDefinitionResponse) ProtoMessage

func (*AuthorizeValidatorDefinitionResponse) ProtoMessage()

func (*AuthorizeValidatorDefinitionResponse) Reset

func (*AuthorizeValidatorDefinitionResponse) Size

func (*AuthorizeValidatorDefinitionResponse) String

func (*AuthorizeValidatorDefinitionResponse) Unmarshal

func (m *AuthorizeValidatorDefinitionResponse) Unmarshal(dAtA []byte) error

func (*AuthorizeValidatorDefinitionResponse) XXX_DiscardUnknown

func (m *AuthorizeValidatorDefinitionResponse) XXX_DiscardUnknown()

func (*AuthorizeValidatorDefinitionResponse) XXX_Marshal

func (m *AuthorizeValidatorDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeValidatorDefinitionResponse) XXX_Merge

func (*AuthorizeValidatorDefinitionResponse) XXX_Size

func (*AuthorizeValidatorDefinitionResponse) XXX_Unmarshal

func (m *AuthorizeValidatorDefinitionResponse) XXX_Unmarshal(b []byte) error

type AuthorizeValidatorVoteRequest

type AuthorizeValidatorVoteRequest struct {
	// The validator vote to authorize.
	ValidatorVote *v13.ValidatorVoteBody `protobuf:"bytes,1,opt,name=validator_vote,json=validatorVote,proto3" json:"validator_vote,omitempty"`
	// Optionally, pre-authorization data, if required by the custodian.
	//
	// Pre-authorization data is backend-specific, and backends are free to ignore it.
	//
	// Multiple `PreAuthorization` packets can be included in a single request,
	// to support multi-party pre-authorizations.
	PreAuthorizations []*PreAuthorization `protobuf:"bytes,3,rep,name=pre_authorizations,json=preAuthorizations,proto3" json:"pre_authorizations,omitempty"`
}

func (*AuthorizeValidatorVoteRequest) Descriptor

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

func (*AuthorizeValidatorVoteRequest) GetPreAuthorizations

func (m *AuthorizeValidatorVoteRequest) GetPreAuthorizations() []*PreAuthorization

func (*AuthorizeValidatorVoteRequest) GetValidatorVote

func (m *AuthorizeValidatorVoteRequest) GetValidatorVote() *v13.ValidatorVoteBody

func (*AuthorizeValidatorVoteRequest) Marshal

func (m *AuthorizeValidatorVoteRequest) Marshal() (dAtA []byte, err error)

func (*AuthorizeValidatorVoteRequest) MarshalTo

func (m *AuthorizeValidatorVoteRequest) MarshalTo(dAtA []byte) (int, error)

func (*AuthorizeValidatorVoteRequest) MarshalToSizedBuffer

func (m *AuthorizeValidatorVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthorizeValidatorVoteRequest) ProtoMessage

func (*AuthorizeValidatorVoteRequest) ProtoMessage()

func (*AuthorizeValidatorVoteRequest) Reset

func (m *AuthorizeValidatorVoteRequest) Reset()

func (*AuthorizeValidatorVoteRequest) Size

func (m *AuthorizeValidatorVoteRequest) Size() (n int)

func (*AuthorizeValidatorVoteRequest) String

func (*AuthorizeValidatorVoteRequest) Unmarshal

func (m *AuthorizeValidatorVoteRequest) Unmarshal(dAtA []byte) error

func (*AuthorizeValidatorVoteRequest) XXX_DiscardUnknown

func (m *AuthorizeValidatorVoteRequest) XXX_DiscardUnknown()

func (*AuthorizeValidatorVoteRequest) XXX_Marshal

func (m *AuthorizeValidatorVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeValidatorVoteRequest) XXX_Merge

func (m *AuthorizeValidatorVoteRequest) XXX_Merge(src proto.Message)

func (*AuthorizeValidatorVoteRequest) XXX_Size

func (m *AuthorizeValidatorVoteRequest) XXX_Size() int

func (*AuthorizeValidatorVoteRequest) XXX_Unmarshal

func (m *AuthorizeValidatorVoteRequest) XXX_Unmarshal(b []byte) error

type AuthorizeValidatorVoteResponse

type AuthorizeValidatorVoteResponse struct {
	// The authorization signature for the validator vote.
	ValidatorVoteAuth *v12.SpendAuthSignature `protobuf:"bytes,1,opt,name=validator_vote_auth,json=validatorVoteAuth,proto3" json:"validator_vote_auth,omitempty"`
}

func (*AuthorizeValidatorVoteResponse) Descriptor

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

func (*AuthorizeValidatorVoteResponse) GetValidatorVoteAuth

func (m *AuthorizeValidatorVoteResponse) GetValidatorVoteAuth() *v12.SpendAuthSignature

func (*AuthorizeValidatorVoteResponse) Marshal

func (m *AuthorizeValidatorVoteResponse) Marshal() (dAtA []byte, err error)

func (*AuthorizeValidatorVoteResponse) MarshalTo

func (m *AuthorizeValidatorVoteResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthorizeValidatorVoteResponse) MarshalToSizedBuffer

func (m *AuthorizeValidatorVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthorizeValidatorVoteResponse) ProtoMessage

func (*AuthorizeValidatorVoteResponse) ProtoMessage()

func (*AuthorizeValidatorVoteResponse) Reset

func (m *AuthorizeValidatorVoteResponse) Reset()

func (*AuthorizeValidatorVoteResponse) Size

func (m *AuthorizeValidatorVoteResponse) Size() (n int)

func (*AuthorizeValidatorVoteResponse) String

func (*AuthorizeValidatorVoteResponse) Unmarshal

func (m *AuthorizeValidatorVoteResponse) Unmarshal(dAtA []byte) error

func (*AuthorizeValidatorVoteResponse) XXX_DiscardUnknown

func (m *AuthorizeValidatorVoteResponse) XXX_DiscardUnknown()

func (*AuthorizeValidatorVoteResponse) XXX_Marshal

func (m *AuthorizeValidatorVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeValidatorVoteResponse) XXX_Merge

func (m *AuthorizeValidatorVoteResponse) XXX_Merge(src proto.Message)

func (*AuthorizeValidatorVoteResponse) XXX_Size

func (m *AuthorizeValidatorVoteResponse) XXX_Size() int

func (*AuthorizeValidatorVoteResponse) XXX_Unmarshal

func (m *AuthorizeValidatorVoteResponse) XXX_Unmarshal(b []byte) error

type ConfirmAddressRequest

type ConfirmAddressRequest struct {
	AddressIndex *v14.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"`
}

func (*ConfirmAddressRequest) Descriptor

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

func (*ConfirmAddressRequest) GetAddressIndex

func (m *ConfirmAddressRequest) GetAddressIndex() *v14.AddressIndex

func (*ConfirmAddressRequest) Marshal

func (m *ConfirmAddressRequest) Marshal() (dAtA []byte, err error)

func (*ConfirmAddressRequest) MarshalTo

func (m *ConfirmAddressRequest) MarshalTo(dAtA []byte) (int, error)

func (*ConfirmAddressRequest) MarshalToSizedBuffer

func (m *ConfirmAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfirmAddressRequest) ProtoMessage

func (*ConfirmAddressRequest) ProtoMessage()

func (*ConfirmAddressRequest) Reset

func (m *ConfirmAddressRequest) Reset()

func (*ConfirmAddressRequest) Size

func (m *ConfirmAddressRequest) Size() (n int)

func (*ConfirmAddressRequest) String

func (m *ConfirmAddressRequest) String() string

func (*ConfirmAddressRequest) Unmarshal

func (m *ConfirmAddressRequest) Unmarshal(dAtA []byte) error

func (*ConfirmAddressRequest) XXX_DiscardUnknown

func (m *ConfirmAddressRequest) XXX_DiscardUnknown()

func (*ConfirmAddressRequest) XXX_Marshal

func (m *ConfirmAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfirmAddressRequest) XXX_Merge

func (m *ConfirmAddressRequest) XXX_Merge(src proto.Message)

func (*ConfirmAddressRequest) XXX_Size

func (m *ConfirmAddressRequest) XXX_Size() int

func (*ConfirmAddressRequest) XXX_Unmarshal

func (m *ConfirmAddressRequest) XXX_Unmarshal(b []byte) error

type ConfirmAddressResponse

type ConfirmAddressResponse struct {
	Address *v14.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*ConfirmAddressResponse) Descriptor

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

func (*ConfirmAddressResponse) GetAddress

func (m *ConfirmAddressResponse) GetAddress() *v14.Address

func (*ConfirmAddressResponse) Marshal

func (m *ConfirmAddressResponse) Marshal() (dAtA []byte, err error)

func (*ConfirmAddressResponse) MarshalTo

func (m *ConfirmAddressResponse) MarshalTo(dAtA []byte) (int, error)

func (*ConfirmAddressResponse) MarshalToSizedBuffer

func (m *ConfirmAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfirmAddressResponse) ProtoMessage

func (*ConfirmAddressResponse) ProtoMessage()

func (*ConfirmAddressResponse) Reset

func (m *ConfirmAddressResponse) Reset()

func (*ConfirmAddressResponse) Size

func (m *ConfirmAddressResponse) Size() (n int)

func (*ConfirmAddressResponse) String

func (m *ConfirmAddressResponse) String() string

func (*ConfirmAddressResponse) Unmarshal

func (m *ConfirmAddressResponse) Unmarshal(dAtA []byte) error

func (*ConfirmAddressResponse) XXX_DiscardUnknown

func (m *ConfirmAddressResponse) XXX_DiscardUnknown()

func (*ConfirmAddressResponse) XXX_Marshal

func (m *ConfirmAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfirmAddressResponse) XXX_Merge

func (m *ConfirmAddressResponse) XXX_Merge(src proto.Message)

func (*ConfirmAddressResponse) XXX_Size

func (m *ConfirmAddressResponse) XXX_Size() int

func (*ConfirmAddressResponse) XXX_Unmarshal

func (m *ConfirmAddressResponse) XXX_Unmarshal(b []byte) error

type CustodyServiceClient

type CustodyServiceClient interface {
	// Requests authorization of the transaction with the given description.
	Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error)
	// Requests authorization of the given validator definition update.
	AuthorizeValidatorDefinition(ctx context.Context, in *AuthorizeValidatorDefinitionRequest, opts ...grpc.CallOption) (*AuthorizeValidatorDefinitionResponse, error)
	// Requests authorization of the given validator vote.
	AuthorizeValidatorVote(ctx context.Context, in *AuthorizeValidatorVoteRequest, opts ...grpc.CallOption) (*AuthorizeValidatorVoteResponse, error)
	// Requests the full viewing key from the custodian.
	//
	// Custody backends should decide whether to honor this request, and how to
	// control access to it.
	ExportFullViewingKey(ctx context.Context, in *ExportFullViewingKeyRequest, opts ...grpc.CallOption) (*ExportFullViewingKeyResponse, error)
	// Displays an address to a user for confirmation.
	//
	// Custody backends with user interaction should present the address to the
	// user and wait for explicit confirmation before returning.
	//
	// Non-interactive custody backends may return immediately.
	ConfirmAddress(ctx context.Context, in *ConfirmAddressRequest, opts ...grpc.CallOption) (*ConfirmAddressResponse, error)
}

CustodyServiceClient is the client API for CustodyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCustodyServiceClient

func NewCustodyServiceClient(cc grpc1.ClientConn) CustodyServiceClient

type CustodyServiceServer

type CustodyServiceServer interface {
	// Requests authorization of the transaction with the given description.
	Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
	// Requests authorization of the given validator definition update.
	AuthorizeValidatorDefinition(context.Context, *AuthorizeValidatorDefinitionRequest) (*AuthorizeValidatorDefinitionResponse, error)
	// Requests authorization of the given validator vote.
	AuthorizeValidatorVote(context.Context, *AuthorizeValidatorVoteRequest) (*AuthorizeValidatorVoteResponse, error)
	// Requests the full viewing key from the custodian.
	//
	// Custody backends should decide whether to honor this request, and how to
	// control access to it.
	ExportFullViewingKey(context.Context, *ExportFullViewingKeyRequest) (*ExportFullViewingKeyResponse, error)
	// Displays an address to a user for confirmation.
	//
	// Custody backends with user interaction should present the address to the
	// user and wait for explicit confirmation before returning.
	//
	// Non-interactive custody backends may return immediately.
	ConfirmAddress(context.Context, *ConfirmAddressRequest) (*ConfirmAddressResponse, error)
}

CustodyServiceServer is the server API for CustodyService service.

type ExportFullViewingKeyRequest

type ExportFullViewingKeyRequest struct {
}

func (*ExportFullViewingKeyRequest) Descriptor

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

func (*ExportFullViewingKeyRequest) Marshal

func (m *ExportFullViewingKeyRequest) Marshal() (dAtA []byte, err error)

func (*ExportFullViewingKeyRequest) MarshalTo

func (m *ExportFullViewingKeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*ExportFullViewingKeyRequest) MarshalToSizedBuffer

func (m *ExportFullViewingKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExportFullViewingKeyRequest) ProtoMessage

func (*ExportFullViewingKeyRequest) ProtoMessage()

func (*ExportFullViewingKeyRequest) Reset

func (m *ExportFullViewingKeyRequest) Reset()

func (*ExportFullViewingKeyRequest) Size

func (m *ExportFullViewingKeyRequest) Size() (n int)

func (*ExportFullViewingKeyRequest) String

func (m *ExportFullViewingKeyRequest) String() string

func (*ExportFullViewingKeyRequest) Unmarshal

func (m *ExportFullViewingKeyRequest) Unmarshal(dAtA []byte) error

func (*ExportFullViewingKeyRequest) XXX_DiscardUnknown

func (m *ExportFullViewingKeyRequest) XXX_DiscardUnknown()

func (*ExportFullViewingKeyRequest) XXX_Marshal

func (m *ExportFullViewingKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportFullViewingKeyRequest) XXX_Merge

func (m *ExportFullViewingKeyRequest) XXX_Merge(src proto.Message)

func (*ExportFullViewingKeyRequest) XXX_Size

func (m *ExportFullViewingKeyRequest) XXX_Size() int

func (*ExportFullViewingKeyRequest) XXX_Unmarshal

func (m *ExportFullViewingKeyRequest) XXX_Unmarshal(b []byte) error

type ExportFullViewingKeyResponse

type ExportFullViewingKeyResponse struct {
	// The full viewing key.
	FullViewingKey *v14.FullViewingKey `protobuf:"bytes,1,opt,name=full_viewing_key,json=fullViewingKey,proto3" json:"full_viewing_key,omitempty"`
}

func (*ExportFullViewingKeyResponse) Descriptor

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

func (*ExportFullViewingKeyResponse) GetFullViewingKey

func (m *ExportFullViewingKeyResponse) GetFullViewingKey() *v14.FullViewingKey

func (*ExportFullViewingKeyResponse) Marshal

func (m *ExportFullViewingKeyResponse) Marshal() (dAtA []byte, err error)

func (*ExportFullViewingKeyResponse) MarshalTo

func (m *ExportFullViewingKeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*ExportFullViewingKeyResponse) MarshalToSizedBuffer

func (m *ExportFullViewingKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExportFullViewingKeyResponse) ProtoMessage

func (*ExportFullViewingKeyResponse) ProtoMessage()

func (*ExportFullViewingKeyResponse) Reset

func (m *ExportFullViewingKeyResponse) Reset()

func (*ExportFullViewingKeyResponse) Size

func (m *ExportFullViewingKeyResponse) Size() (n int)

func (*ExportFullViewingKeyResponse) String

func (*ExportFullViewingKeyResponse) Unmarshal

func (m *ExportFullViewingKeyResponse) Unmarshal(dAtA []byte) error

func (*ExportFullViewingKeyResponse) XXX_DiscardUnknown

func (m *ExportFullViewingKeyResponse) XXX_DiscardUnknown()

func (*ExportFullViewingKeyResponse) XXX_Marshal

func (m *ExportFullViewingKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportFullViewingKeyResponse) XXX_Merge

func (m *ExportFullViewingKeyResponse) XXX_Merge(src proto.Message)

func (*ExportFullViewingKeyResponse) XXX_Size

func (m *ExportFullViewingKeyResponse) XXX_Size() int

func (*ExportFullViewingKeyResponse) XXX_Unmarshal

func (m *ExportFullViewingKeyResponse) XXX_Unmarshal(b []byte) error

type PreAuthorization

type PreAuthorization struct {
	// Types that are valid to be assigned to PreAuthorization:
	//	*PreAuthorization_Ed25519_
	PreAuthorization isPreAuthorization_PreAuthorization `protobuf_oneof:"pre_authorization"`
}

A pre-authorization packet. This allows a custodian to delegate (partial) signing authority to other authorization mechanisms. Details of how a custodian manages those keys are out-of-scope for the custody protocol and are custodian-specific.

func (*PreAuthorization) Descriptor

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

func (*PreAuthorization) GetEd25519

func (m *PreAuthorization) GetEd25519() *PreAuthorization_Ed25519

func (*PreAuthorization) GetPreAuthorization

func (m *PreAuthorization) GetPreAuthorization() isPreAuthorization_PreAuthorization

func (*PreAuthorization) Marshal

func (m *PreAuthorization) Marshal() (dAtA []byte, err error)

func (*PreAuthorization) MarshalTo

func (m *PreAuthorization) MarshalTo(dAtA []byte) (int, error)

func (*PreAuthorization) MarshalToSizedBuffer

func (m *PreAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PreAuthorization) ProtoMessage

func (*PreAuthorization) ProtoMessage()

func (*PreAuthorization) Reset

func (m *PreAuthorization) Reset()

func (*PreAuthorization) Size

func (m *PreAuthorization) Size() (n int)

func (*PreAuthorization) String

func (m *PreAuthorization) String() string

func (*PreAuthorization) Unmarshal

func (m *PreAuthorization) Unmarshal(dAtA []byte) error

func (*PreAuthorization) XXX_DiscardUnknown

func (m *PreAuthorization) XXX_DiscardUnknown()

func (*PreAuthorization) XXX_Marshal

func (m *PreAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PreAuthorization) XXX_Merge

func (m *PreAuthorization) XXX_Merge(src proto.Message)

func (*PreAuthorization) XXX_OneofWrappers

func (*PreAuthorization) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PreAuthorization) XXX_Size

func (m *PreAuthorization) XXX_Size() int

func (*PreAuthorization) XXX_Unmarshal

func (m *PreAuthorization) XXX_Unmarshal(b []byte) error

type PreAuthorization_Ed25519

type PreAuthorization_Ed25519 struct {
	// The Ed25519 verification key used to verify the signature.
	Vk []byte `protobuf:"bytes,1,opt,name=vk,proto3" json:"vk,omitempty"`
	// The Ed25519 signature over the `TransactionPlan`.
	Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
}

An Ed25519-based preauthorization, containing an Ed25519 signature over the `TransactionPlan`.

func (*PreAuthorization_Ed25519) Descriptor

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

func (*PreAuthorization_Ed25519) GetSig

func (m *PreAuthorization_Ed25519) GetSig() []byte

func (*PreAuthorization_Ed25519) GetVk

func (m *PreAuthorization_Ed25519) GetVk() []byte

func (*PreAuthorization_Ed25519) Marshal

func (m *PreAuthorization_Ed25519) Marshal() (dAtA []byte, err error)

func (*PreAuthorization_Ed25519) MarshalTo

func (m *PreAuthorization_Ed25519) MarshalTo(dAtA []byte) (int, error)

func (*PreAuthorization_Ed25519) MarshalToSizedBuffer

func (m *PreAuthorization_Ed25519) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PreAuthorization_Ed25519) ProtoMessage

func (*PreAuthorization_Ed25519) ProtoMessage()

func (*PreAuthorization_Ed25519) Reset

func (m *PreAuthorization_Ed25519) Reset()

func (*PreAuthorization_Ed25519) Size

func (m *PreAuthorization_Ed25519) Size() (n int)

func (*PreAuthorization_Ed25519) String

func (m *PreAuthorization_Ed25519) String() string

func (*PreAuthorization_Ed25519) Unmarshal

func (m *PreAuthorization_Ed25519) Unmarshal(dAtA []byte) error

func (*PreAuthorization_Ed25519) XXX_DiscardUnknown

func (m *PreAuthorization_Ed25519) XXX_DiscardUnknown()

func (*PreAuthorization_Ed25519) XXX_Marshal

func (m *PreAuthorization_Ed25519) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PreAuthorization_Ed25519) XXX_Merge

func (m *PreAuthorization_Ed25519) XXX_Merge(src proto.Message)

func (*PreAuthorization_Ed25519) XXX_Size

func (m *PreAuthorization_Ed25519) XXX_Size() int

func (*PreAuthorization_Ed25519) XXX_Unmarshal

func (m *PreAuthorization_Ed25519) XXX_Unmarshal(b []byte) error

type PreAuthorization_Ed25519_

type PreAuthorization_Ed25519_ struct {
	Ed25519 *PreAuthorization_Ed25519 `protobuf:"bytes,1,opt,name=ed25519,proto3,oneof" json:"ed25519,omitempty"`
}

func (*PreAuthorization_Ed25519_) MarshalTo

func (m *PreAuthorization_Ed25519_) MarshalTo(dAtA []byte) (int, error)

func (*PreAuthorization_Ed25519_) MarshalToSizedBuffer

func (m *PreAuthorization_Ed25519_) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PreAuthorization_Ed25519_) Size

func (m *PreAuthorization_Ed25519_) Size() (n int)

type UnimplementedCustodyServiceServer

type UnimplementedCustodyServiceServer struct {
}

UnimplementedCustodyServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCustodyServiceServer) Authorize

func (*UnimplementedCustodyServiceServer) AuthorizeValidatorDefinition

func (*UnimplementedCustodyServiceServer) AuthorizeValidatorVote

func (*UnimplementedCustodyServiceServer) ConfirmAddress

func (*UnimplementedCustodyServiceServer) ExportFullViewingKey

Jump to

Keyboard shortcuts

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