proto

package
v0.0.0-...-8d6ab53 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer)

Types

type Account

type Account struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Note: The Account type is used only in Response types. All Request types which require an account to be specified use only the address to identify the account. At the Quorum-level there is no knowledge of account URLs so the url field has been excluded from Requests to simplify the protocol.

func (*Account) Descriptor

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

func (*Account) GetAddress

func (m *Account) GetAddress() []byte

func (*Account) GetUrl

func (m *Account) GetUrl() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) String

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

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

func (*Account) XXX_Merge

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

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

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

type AccountServiceClient

type AccountServiceClient interface {
	// Status provides a string message describing the current state of the plugin.
	// The content of the returned state is left to the developer's discretion.
	// Examples include information on the business-level state (e.g. currently unlocked accounts) and process-level state (e.g. is plugin healthy)
	Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	// The specific behaviour of Open will depend on the backend being implemented.
	// It may be that Open is not required in which case it should be implemented as a no-op.
	// It should not unlock or decrypt account keys.
	// Open may be used to initialize resources or create a connection to the storage backend.
	// It should be expected that any allocated resources or connections can be released by calling Close.
	Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error)
	// The specific behaviour of Close will depend on the backend being implemented.
	// It may be that Close is not required, in which case it should be implemented as a no-op.
	// Close releases any resources or connections allocated by Open.
	Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error)
	// Accounts returns the currently available accounts managed by the plugin.
	Accounts(ctx context.Context, in *AccountsRequest, opts ...grpc.CallOption) (*AccountsResponse, error)
	// Contains returns whether the provided account is managed by the plugin.
	Contains(ctx context.Context, in *ContainsRequest, opts ...grpc.CallOption) (*ContainsResponse, error)
	// Sign signs the provided data with the specified account
	Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
	// UnlockAndSign unlocks the specified account with the provided passphrase and uses it to sign the provided data.
	// The account will be locked once the signing is complete.
	// It may be that the storage backend being implemented does not rely on passphrase-encryption, in which case the
	// passphrase parameter should be ignored when unlocking.
	UnlockAndSign(ctx context.Context, in *UnlockAndSignRequest, opts ...grpc.CallOption) (*SignResponse, error)
	// TimedUnlock unlocks the specified account with the provided passphrase for the duration provided.
	// The duration is provided in nanoseconds.
	// It may be that the storage backend being implemented does not rely on passphrase-encryption, in which case the
	// passphrase parameter should be ignored when unlocking.
	TimedUnlock(ctx context.Context, in *TimedUnlockRequest, opts ...grpc.CallOption) (*TimedUnlockResponse, error)
	// Lock immediately locks the specified account, overriding any existing timed unlocks.
	Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error)
	// NewAccount creates a new account and stores it in the backend.
	// The newAccountConfig is provided as a generic json-encoded byte array to allow for the structure of the config
	// to be left to the developer's discretion.
	NewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*NewAccountResponse, error)
	// ImportRawKey creates a new account from the provided hex-encoded private key and stores it in the backend.
	// Validation of the hex string private key is not required as this handled by Quorum.
	// The newAccountConfig is provided as a generic json-encoded byte array to allow for the structure of the config
	// to be left to the developer's discretion.
	ImportRawKey(ctx context.Context, in *ImportRawKeyRequest, opts ...grpc.CallOption) (*ImportRawKeyResponse, error)
}

AccountServiceClient is the client API for AccountService service.

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

func NewAccountServiceClient

func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient

type AccountServiceServer

type AccountServiceServer interface {
	// Status provides a string message describing the current state of the plugin.
	// The content of the returned state is left to the developer's discretion.
	// Examples include information on the business-level state (e.g. currently unlocked accounts) and process-level state (e.g. is plugin healthy)
	Status(context.Context, *StatusRequest) (*StatusResponse, error)
	// The specific behaviour of Open will depend on the backend being implemented.
	// It may be that Open is not required in which case it should be implemented as a no-op.
	// It should not unlock or decrypt account keys.
	// Open may be used to initialize resources or create a connection to the storage backend.
	// It should be expected that any allocated resources or connections can be released by calling Close.
	Open(context.Context, *OpenRequest) (*OpenResponse, error)
	// The specific behaviour of Close will depend on the backend being implemented.
	// It may be that Close is not required, in which case it should be implemented as a no-op.
	// Close releases any resources or connections allocated by Open.
	Close(context.Context, *CloseRequest) (*CloseResponse, error)
	// Accounts returns the currently available accounts managed by the plugin.
	Accounts(context.Context, *AccountsRequest) (*AccountsResponse, error)
	// Contains returns whether the provided account is managed by the plugin.
	Contains(context.Context, *ContainsRequest) (*ContainsResponse, error)
	// Sign signs the provided data with the specified account
	Sign(context.Context, *SignRequest) (*SignResponse, error)
	// UnlockAndSign unlocks the specified account with the provided passphrase and uses it to sign the provided data.
	// The account will be locked once the signing is complete.
	// It may be that the storage backend being implemented does not rely on passphrase-encryption, in which case the
	// passphrase parameter should be ignored when unlocking.
	UnlockAndSign(context.Context, *UnlockAndSignRequest) (*SignResponse, error)
	// TimedUnlock unlocks the specified account with the provided passphrase for the duration provided.
	// The duration is provided in nanoseconds.
	// It may be that the storage backend being implemented does not rely on passphrase-encryption, in which case the
	// passphrase parameter should be ignored when unlocking.
	TimedUnlock(context.Context, *TimedUnlockRequest) (*TimedUnlockResponse, error)
	// Lock immediately locks the specified account, overriding any existing timed unlocks.
	Lock(context.Context, *LockRequest) (*LockResponse, error)
	// NewAccount creates a new account and stores it in the backend.
	// The newAccountConfig is provided as a generic json-encoded byte array to allow for the structure of the config
	// to be left to the developer's discretion.
	NewAccount(context.Context, *NewAccountRequest) (*NewAccountResponse, error)
	// ImportRawKey creates a new account from the provided hex-encoded private key and stores it in the backend.
	// Validation of the hex string private key is not required as this handled by Quorum.
	// The newAccountConfig is provided as a generic json-encoded byte array to allow for the structure of the config
	// to be left to the developer's discretion.
	ImportRawKey(context.Context, *ImportRawKeyRequest) (*ImportRawKeyResponse, error)
}

AccountServiceServer is the server API for AccountService service.

type AccountsRequest

type AccountsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountsRequest) Descriptor

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

func (*AccountsRequest) ProtoMessage

func (*AccountsRequest) ProtoMessage()

func (*AccountsRequest) Reset

func (m *AccountsRequest) Reset()

func (*AccountsRequest) String

func (m *AccountsRequest) String() string

func (*AccountsRequest) XXX_DiscardUnknown

func (m *AccountsRequest) XXX_DiscardUnknown()

func (*AccountsRequest) XXX_Marshal

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

func (*AccountsRequest) XXX_Merge

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

func (*AccountsRequest) XXX_Size

func (m *AccountsRequest) XXX_Size() int

func (*AccountsRequest) XXX_Unmarshal

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

type AccountsResponse

type AccountsResponse struct {
	Accounts             []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*AccountsResponse) Descriptor

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

func (*AccountsResponse) GetAccounts

func (m *AccountsResponse) GetAccounts() []*Account

func (*AccountsResponse) ProtoMessage

func (*AccountsResponse) ProtoMessage()

func (*AccountsResponse) Reset

func (m *AccountsResponse) Reset()

func (*AccountsResponse) String

func (m *AccountsResponse) String() string

func (*AccountsResponse) XXX_DiscardUnknown

func (m *AccountsResponse) XXX_DiscardUnknown()

func (*AccountsResponse) XXX_Marshal

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

func (*AccountsResponse) XXX_Merge

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

func (*AccountsResponse) XXX_Size

func (m *AccountsResponse) XXX_Size() int

func (*AccountsResponse) XXX_Unmarshal

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

type CloseRequest

type CloseRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CloseRequest) Descriptor

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

func (*CloseRequest) ProtoMessage

func (*CloseRequest) ProtoMessage()

func (*CloseRequest) Reset

func (m *CloseRequest) Reset()

func (*CloseRequest) String

func (m *CloseRequest) String() string

func (*CloseRequest) XXX_DiscardUnknown

func (m *CloseRequest) XXX_DiscardUnknown()

func (*CloseRequest) XXX_Marshal

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

func (*CloseRequest) XXX_Merge

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

func (*CloseRequest) XXX_Size

func (m *CloseRequest) XXX_Size() int

func (*CloseRequest) XXX_Unmarshal

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

type CloseResponse

type CloseResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CloseResponse) Descriptor

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

func (*CloseResponse) ProtoMessage

func (*CloseResponse) ProtoMessage()

func (*CloseResponse) Reset

func (m *CloseResponse) Reset()

func (*CloseResponse) String

func (m *CloseResponse) String() string

func (*CloseResponse) XXX_DiscardUnknown

func (m *CloseResponse) XXX_DiscardUnknown()

func (*CloseResponse) XXX_Marshal

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

func (*CloseResponse) XXX_Merge

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

func (*CloseResponse) XXX_Size

func (m *CloseResponse) XXX_Size() int

func (*CloseResponse) XXX_Unmarshal

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

type ContainsRequest

type ContainsRequest struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContainsRequest) Descriptor

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

func (*ContainsRequest) GetAddress

func (m *ContainsRequest) GetAddress() []byte

func (*ContainsRequest) ProtoMessage

func (*ContainsRequest) ProtoMessage()

func (*ContainsRequest) Reset

func (m *ContainsRequest) Reset()

func (*ContainsRequest) String

func (m *ContainsRequest) String() string

func (*ContainsRequest) XXX_DiscardUnknown

func (m *ContainsRequest) XXX_DiscardUnknown()

func (*ContainsRequest) XXX_Marshal

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

func (*ContainsRequest) XXX_Merge

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

func (*ContainsRequest) XXX_Size

func (m *ContainsRequest) XXX_Size() int

func (*ContainsRequest) XXX_Unmarshal

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

type ContainsResponse

type ContainsResponse struct {
	IsContained          bool     `protobuf:"varint,1,opt,name=isContained,proto3" json:"isContained,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContainsResponse) Descriptor

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

func (*ContainsResponse) GetIsContained

func (m *ContainsResponse) GetIsContained() bool

func (*ContainsResponse) ProtoMessage

func (*ContainsResponse) ProtoMessage()

func (*ContainsResponse) Reset

func (m *ContainsResponse) Reset()

func (*ContainsResponse) String

func (m *ContainsResponse) String() string

func (*ContainsResponse) XXX_DiscardUnknown

func (m *ContainsResponse) XXX_DiscardUnknown()

func (*ContainsResponse) XXX_Marshal

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

func (*ContainsResponse) XXX_Merge

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

func (*ContainsResponse) XXX_Size

func (m *ContainsResponse) XXX_Size() int

func (*ContainsResponse) XXX_Unmarshal

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

type ImportRawKeyRequest

type ImportRawKeyRequest struct {
	RawKey               string   `protobuf:"bytes,1,opt,name=rawKey,proto3" json:"rawKey,omitempty"`
	NewAccountConfig     []byte   `protobuf:"bytes,2,opt,name=newAccountConfig,proto3" json:"newAccountConfig,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ImportRawKeyRequest) Descriptor

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

func (*ImportRawKeyRequest) GetNewAccountConfig

func (m *ImportRawKeyRequest) GetNewAccountConfig() []byte

func (*ImportRawKeyRequest) GetRawKey

func (m *ImportRawKeyRequest) GetRawKey() string

func (*ImportRawKeyRequest) ProtoMessage

func (*ImportRawKeyRequest) ProtoMessage()

func (*ImportRawKeyRequest) Reset

func (m *ImportRawKeyRequest) Reset()

func (*ImportRawKeyRequest) String

func (m *ImportRawKeyRequest) String() string

func (*ImportRawKeyRequest) XXX_DiscardUnknown

func (m *ImportRawKeyRequest) XXX_DiscardUnknown()

func (*ImportRawKeyRequest) XXX_Marshal

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

func (*ImportRawKeyRequest) XXX_Merge

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

func (*ImportRawKeyRequest) XXX_Size

func (m *ImportRawKeyRequest) XXX_Size() int

func (*ImportRawKeyRequest) XXX_Unmarshal

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

type ImportRawKeyResponse

type ImportRawKeyResponse struct {
	Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ImportRawKeyResponse) Descriptor

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

func (*ImportRawKeyResponse) GetAccount

func (m *ImportRawKeyResponse) GetAccount() *Account

func (*ImportRawKeyResponse) ProtoMessage

func (*ImportRawKeyResponse) ProtoMessage()

func (*ImportRawKeyResponse) Reset

func (m *ImportRawKeyResponse) Reset()

func (*ImportRawKeyResponse) String

func (m *ImportRawKeyResponse) String() string

func (*ImportRawKeyResponse) XXX_DiscardUnknown

func (m *ImportRawKeyResponse) XXX_DiscardUnknown()

func (*ImportRawKeyResponse) XXX_Marshal

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

func (*ImportRawKeyResponse) XXX_Merge

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

func (*ImportRawKeyResponse) XXX_Size

func (m *ImportRawKeyResponse) XXX_Size() int

func (*ImportRawKeyResponse) XXX_Unmarshal

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

type LockRequest

type LockRequest struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LockRequest) Descriptor

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

func (*LockRequest) GetAddress

func (m *LockRequest) GetAddress() []byte

func (*LockRequest) ProtoMessage

func (*LockRequest) ProtoMessage()

func (*LockRequest) Reset

func (m *LockRequest) Reset()

func (*LockRequest) String

func (m *LockRequest) String() string

func (*LockRequest) XXX_DiscardUnknown

func (m *LockRequest) XXX_DiscardUnknown()

func (*LockRequest) XXX_Marshal

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

func (*LockRequest) XXX_Merge

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

func (*LockRequest) XXX_Size

func (m *LockRequest) XXX_Size() int

func (*LockRequest) XXX_Unmarshal

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

type LockResponse

type LockResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LockResponse) Descriptor

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

func (*LockResponse) ProtoMessage

func (*LockResponse) ProtoMessage()

func (*LockResponse) Reset

func (m *LockResponse) Reset()

func (*LockResponse) String

func (m *LockResponse) String() string

func (*LockResponse) XXX_DiscardUnknown

func (m *LockResponse) XXX_DiscardUnknown()

func (*LockResponse) XXX_Marshal

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

func (*LockResponse) XXX_Merge

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

func (*LockResponse) XXX_Size

func (m *LockResponse) XXX_Size() int

func (*LockResponse) XXX_Unmarshal

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

type NewAccountRequest

type NewAccountRequest struct {
	NewAccountConfig     []byte   `protobuf:"bytes,1,opt,name=newAccountConfig,proto3" json:"newAccountConfig,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAccountRequest) Descriptor

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

func (*NewAccountRequest) GetNewAccountConfig

func (m *NewAccountRequest) GetNewAccountConfig() []byte

func (*NewAccountRequest) ProtoMessage

func (*NewAccountRequest) ProtoMessage()

func (*NewAccountRequest) Reset

func (m *NewAccountRequest) Reset()

func (*NewAccountRequest) String

func (m *NewAccountRequest) String() string

func (*NewAccountRequest) XXX_DiscardUnknown

func (m *NewAccountRequest) XXX_DiscardUnknown()

func (*NewAccountRequest) XXX_Marshal

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

func (*NewAccountRequest) XXX_Merge

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

func (*NewAccountRequest) XXX_Size

func (m *NewAccountRequest) XXX_Size() int

func (*NewAccountRequest) XXX_Unmarshal

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

type NewAccountResponse

type NewAccountResponse struct {
	Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAccountResponse) Descriptor

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

func (*NewAccountResponse) GetAccount

func (m *NewAccountResponse) GetAccount() *Account

func (*NewAccountResponse) ProtoMessage

func (*NewAccountResponse) ProtoMessage()

func (*NewAccountResponse) Reset

func (m *NewAccountResponse) Reset()

func (*NewAccountResponse) String

func (m *NewAccountResponse) String() string

func (*NewAccountResponse) XXX_DiscardUnknown

func (m *NewAccountResponse) XXX_DiscardUnknown()

func (*NewAccountResponse) XXX_Marshal

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

func (*NewAccountResponse) XXX_Merge

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

func (*NewAccountResponse) XXX_Size

func (m *NewAccountResponse) XXX_Size() int

func (*NewAccountResponse) XXX_Unmarshal

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

type OpenRequest

type OpenRequest struct {
	Passphrase           string   `protobuf:"bytes,1,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OpenRequest) Descriptor

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

func (*OpenRequest) GetPassphrase

func (m *OpenRequest) GetPassphrase() string

func (*OpenRequest) ProtoMessage

func (*OpenRequest) ProtoMessage()

func (*OpenRequest) Reset

func (m *OpenRequest) Reset()

func (*OpenRequest) String

func (m *OpenRequest) String() string

func (*OpenRequest) XXX_DiscardUnknown

func (m *OpenRequest) XXX_DiscardUnknown()

func (*OpenRequest) XXX_Marshal

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

func (*OpenRequest) XXX_Merge

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

func (*OpenRequest) XXX_Size

func (m *OpenRequest) XXX_Size() int

func (*OpenRequest) XXX_Unmarshal

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

type OpenResponse

type OpenResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OpenResponse) Descriptor

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

func (*OpenResponse) ProtoMessage

func (*OpenResponse) ProtoMessage()

func (*OpenResponse) Reset

func (m *OpenResponse) Reset()

func (*OpenResponse) String

func (m *OpenResponse) String() string

func (*OpenResponse) XXX_DiscardUnknown

func (m *OpenResponse) XXX_DiscardUnknown()

func (*OpenResponse) XXX_Marshal

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

func (*OpenResponse) XXX_Merge

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

func (*OpenResponse) XXX_Size

func (m *OpenResponse) XXX_Size() int

func (*OpenResponse) XXX_Unmarshal

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

type SignRequest

type SignRequest struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	ToSign               []byte   `protobuf:"bytes,2,opt,name=toSign,proto3" json:"toSign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignRequest) Descriptor

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

func (*SignRequest) GetAddress

func (m *SignRequest) GetAddress() []byte

func (*SignRequest) GetToSign

func (m *SignRequest) GetToSign() []byte

func (*SignRequest) ProtoMessage

func (*SignRequest) ProtoMessage()

func (*SignRequest) Reset

func (m *SignRequest) Reset()

func (*SignRequest) String

func (m *SignRequest) String() string

func (*SignRequest) XXX_DiscardUnknown

func (m *SignRequest) XXX_DiscardUnknown()

func (*SignRequest) XXX_Marshal

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

func (*SignRequest) XXX_Merge

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

func (*SignRequest) XXX_Size

func (m *SignRequest) XXX_Size() int

func (*SignRequest) XXX_Unmarshal

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

type SignResponse

type SignResponse struct {
	Sig                  []byte   `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignResponse) Descriptor

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

func (*SignResponse) GetSig

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

func (*SignResponse) ProtoMessage

func (*SignResponse) ProtoMessage()

func (*SignResponse) Reset

func (m *SignResponse) Reset()

func (*SignResponse) String

func (m *SignResponse) String() string

func (*SignResponse) XXX_DiscardUnknown

func (m *SignResponse) XXX_DiscardUnknown()

func (*SignResponse) XXX_Marshal

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

func (*SignResponse) XXX_Merge

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

func (*SignResponse) XXX_Size

func (m *SignResponse) XXX_Size() int

func (*SignResponse) XXX_Unmarshal

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

type StatusRequest

type StatusRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusRequest) Descriptor

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

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset

func (m *StatusRequest) Reset()

func (*StatusRequest) String

func (m *StatusRequest) String() string

func (*StatusRequest) XXX_DiscardUnknown

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal

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

func (*StatusRequest) XXX_Merge

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

func (*StatusRequest) XXX_Size

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal

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

type StatusResponse

type StatusResponse struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusResponse) Descriptor

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

func (*StatusResponse) GetStatus

func (m *StatusResponse) GetStatus() string

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

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

func (*StatusResponse) XXX_Merge

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

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

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

type TimedUnlockRequest

type TimedUnlockRequest struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Duration             int64    `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TimedUnlockRequest) Descriptor

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

func (*TimedUnlockRequest) GetAddress

func (m *TimedUnlockRequest) GetAddress() []byte

func (*TimedUnlockRequest) GetDuration

func (m *TimedUnlockRequest) GetDuration() int64

func (*TimedUnlockRequest) GetPassword

func (m *TimedUnlockRequest) GetPassword() string

func (*TimedUnlockRequest) ProtoMessage

func (*TimedUnlockRequest) ProtoMessage()

func (*TimedUnlockRequest) Reset

func (m *TimedUnlockRequest) Reset()

func (*TimedUnlockRequest) String

func (m *TimedUnlockRequest) String() string

func (*TimedUnlockRequest) XXX_DiscardUnknown

func (m *TimedUnlockRequest) XXX_DiscardUnknown()

func (*TimedUnlockRequest) XXX_Marshal

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

func (*TimedUnlockRequest) XXX_Merge

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

func (*TimedUnlockRequest) XXX_Size

func (m *TimedUnlockRequest) XXX_Size() int

func (*TimedUnlockRequest) XXX_Unmarshal

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

type TimedUnlockResponse

type TimedUnlockResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TimedUnlockResponse) Descriptor

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

func (*TimedUnlockResponse) ProtoMessage

func (*TimedUnlockResponse) ProtoMessage()

func (*TimedUnlockResponse) Reset

func (m *TimedUnlockResponse) Reset()

func (*TimedUnlockResponse) String

func (m *TimedUnlockResponse) String() string

func (*TimedUnlockResponse) XXX_DiscardUnknown

func (m *TimedUnlockResponse) XXX_DiscardUnknown()

func (*TimedUnlockResponse) XXX_Marshal

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

func (*TimedUnlockResponse) XXX_Merge

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

func (*TimedUnlockResponse) XXX_Size

func (m *TimedUnlockResponse) XXX_Size() int

func (*TimedUnlockResponse) XXX_Unmarshal

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

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServiceServer) Accounts

func (*UnimplementedAccountServiceServer) Close

func (*UnimplementedAccountServiceServer) Contains

func (*UnimplementedAccountServiceServer) ImportRawKey

func (*UnimplementedAccountServiceServer) Lock

func (*UnimplementedAccountServiceServer) NewAccount

func (*UnimplementedAccountServiceServer) Open

func (*UnimplementedAccountServiceServer) Sign

func (*UnimplementedAccountServiceServer) Status

func (*UnimplementedAccountServiceServer) TimedUnlock

func (*UnimplementedAccountServiceServer) UnlockAndSign

type UnlockAndSignRequest

type UnlockAndSignRequest struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	ToSign               []byte   `protobuf:"bytes,2,opt,name=toSign,proto3" json:"toSign,omitempty"`
	Passphrase           string   `protobuf:"bytes,3,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnlockAndSignRequest) Descriptor

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

func (*UnlockAndSignRequest) GetAddress

func (m *UnlockAndSignRequest) GetAddress() []byte

func (*UnlockAndSignRequest) GetPassphrase

func (m *UnlockAndSignRequest) GetPassphrase() string

func (*UnlockAndSignRequest) GetToSign

func (m *UnlockAndSignRequest) GetToSign() []byte

func (*UnlockAndSignRequest) ProtoMessage

func (*UnlockAndSignRequest) ProtoMessage()

func (*UnlockAndSignRequest) Reset

func (m *UnlockAndSignRequest) Reset()

func (*UnlockAndSignRequest) String

func (m *UnlockAndSignRequest) String() string

func (*UnlockAndSignRequest) XXX_DiscardUnknown

func (m *UnlockAndSignRequest) XXX_DiscardUnknown()

func (*UnlockAndSignRequest) XXX_Marshal

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

func (*UnlockAndSignRequest) XXX_Merge

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

func (*UnlockAndSignRequest) XXX_Size

func (m *UnlockAndSignRequest) XXX_Size() int

func (*UnlockAndSignRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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