v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressIterator

type AddressIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*mpc_walletspb.Address, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *mpc_walletspb.ListAddressesResponse
}

AddressIterator is an interface for iterating through the response to ListAddresss.

type AssetIterator

type AssetIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*blockchainpb.Asset, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *blockchainpb.ListAssetsResponse
}

AssetIterator is an interface for iterating through the response to ListAssets.

type BalanceDetailIterator

type BalanceDetailIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*mpc_walletspb.BalanceDetail, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *mpc_walletspb.ListBalanceDetailsResponse
}

BalanceDetailIterator is an interface for iterating through the response to ListBalanceDetails.

type BalanceIterator

type BalanceIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*mpc_walletspb.Balance, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *mpc_walletspb.ListBalancesResponse
}

BalanceIterator is an interface for iterating through the response to ListAddresss.

type BlockchainServiceClient

type BlockchainServiceClient interface {
	// Close closes the connection to the API service. The user should invoke this when
	// the client is no longer required.
	Close() error
	// Connection returns a connection to the API service.
	//
	// Deprecated: Connections are now pooled so this method does not always
	// return the same resource.
	Connection() *grpc.ClientConn
	// GetNetwork gets a Network.
	GetNetwork(ctx context.Context, req *blockchainpb.GetNetworkRequest, opts ...gax.CallOption) (*blockchainpb.Network, error)
	// ListNetworks lists the Networks supported by WaaS APIs.
	ListNetworks(ctx context.Context, req *blockchainpb.ListNetworksRequest, opts ...gax.CallOption) NetworkIterator
	// GetAsset retrieves an Asset by resource name.
	GetAsset(ctx context.Context, req *blockchainpb.GetAssetRequest, opts ...gax.CallOption) (*blockchainpb.Asset, error)
	// ListAssets lists the Assets supported by WaaS APIs.
	ListAssets(ctx context.Context, req *blockchainpb.ListAssetsRequest, opts ...gax.CallOption) AssetIterator
	// BatchGetAssets returns the list of Assets indicated by the given request.
	BatchGetAssets(ctx context.Context, req *blockchainpb.BatchGetAssetsRequest, opts ...gax.CallOption) (*blockchainpb.BatchGetAssetsResponse, error)
}

BlockchainServiceClient is a generated interface for blockchain protoc-gen-go_gapic client blockchainServiceClient.

func NewBlockchainServiceClient

func NewBlockchainServiceClient(
	ctx context.Context,
	waasOpts ...clients.WaaSClientOption,
) (BlockchainServiceClient, error)

NewBlockchainServiceClient returns a BlockchainServiceClient based on the given inputs.

type ClientWrappedAddDeviceOperation added in v1.0.6

type ClientWrappedAddDeviceOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be:
	// `/waas/mpc_keys/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning AddDeviceOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Poll delegates to the wrapped longrunning AddDeviceOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Metadata delegates to the wrapped longrunning AddDeviceOperation.
	Metadata() (*mpc_keyspb.AddDeviceMetadata, error)
	// Done delegates to the wrapped longrunning AddDeviceOperation.
	Done() bool
	// Name delegates to the wrapped longrunning AddDeviceOperation.
	Name() string
}

ClientWrappedAddDeviceOperation is a generated interface for mpckey protoc-gen-go_gapic client WrappedAddDeviceOperation.

type ClientWrappedCreateDeviceGroupOperation added in v1.0.6

type ClientWrappedCreateDeviceGroupOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be:
	// `/waas/mpc_keys/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning CreateDeviceGroupOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Poll delegates to the wrapped longrunning CreateDeviceGroupOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Metadata delegates to the wrapped longrunning CreateDeviceGroupOperation.
	Metadata() (*mpc_keyspb.CreateDeviceGroupMetadata, error)
	// Done delegates to the wrapped longrunning CreateDeviceGroupOperation.
	Done() bool
	// Name delegates to the wrapped longrunning CreateDeviceGroupOperation.
	Name() string
}

ClientWrappedCreateDeviceGroupOperation is a generated interface for mpckey protoc-gen-go_gapic client WrappedCreateDeviceGroupOperation.

type ClientWrappedCreateMPCTransactionOperation added in v1.0.6

type ClientWrappedCreateMPCTransactionOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_transactions`, then the request path would be:
	// `/waas/mpc_transactions/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning CreateMPCTransactionOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_transactionspb.MPCTransaction, error)
	// Poll delegates to the wrapped longrunning CreateMPCTransactionOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_transactionspb.MPCTransaction, error)
	// Metadata delegates to the wrapped longrunning CreateMPCTransactionOperation.
	Metadata() (*mpc_transactionspb.CreateMPCTransactionMetadata, error)
	// Done delegates to the wrapped longrunning CreateMPCTransactionOperation.
	Done() bool
	// Name delegates to the wrapped longrunning CreateMPCTransactionOperation.
	Name() string
}

ClientWrappedCreateMPCTransactionOperation is a generated interface for mpctransaction protoc-gen-go_gapic client WrappedCreateMPCTransactionOperation.

type ClientWrappedCreateMPCWalletOperation added in v1.0.6

type ClientWrappedCreateMPCWalletOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_wallets`, then the request path would be:
	// `/waas/mpc_wallets/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning CreateMPCWalletOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_walletspb.MPCWallet, error)
	// Poll delegates to the wrapped longrunning CreateMPCWalletOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_walletspb.MPCWallet, error)
	// Metadata delegates to the wrapped longrunning CreateMPCWalletOperation.
	Metadata() (*mpc_walletspb.CreateMPCWalletMetadata, error)
	// Done delegates to the wrapped longrunning CreateMPCWalletOperation.
	Done() bool
	// Name delegates to the wrapped longrunning CreateMPCWalletOperation.
	Name() string
}

ClientWrappedCreateMPCWalletOperation is a generated interface for mpcwallet protoc-gen-go_gapic client WrappedCreateMPCWalletOperation.

type ClientWrappedCreateSignatureOperation added in v1.0.6

type ClientWrappedCreateSignatureOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be:
	// `/waas/mpc_keys/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning CreateSignatureOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.Signature, error)
	// Poll delegates to the wrapped longrunning CreateSignatureOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.Signature, error)
	// Metadata delegates to the wrapped longrunning CreateSignatureOperation.
	Metadata() (*mpc_keyspb.CreateSignatureMetadata, error)
	// Done delegates to the wrapped longrunning CreateSignatureOperation.
	Done() bool
	// Name delegates to the wrapped longrunning CreateSignatureOperation.
	Name() string
}

ClientWrappedCreateSignatureOperation is a generated interface for mpckey protoc-gen-go_gapic client WrappedCreateSignatureOperation.

type ClientWrappedPrepareDeviceArchiveOperation added in v1.0.6

type ClientWrappedPrepareDeviceArchiveOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be:
	// `/waas/mpc_keys/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning PrepareDeviceArchiveOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Poll delegates to the wrapped longrunning PrepareDeviceArchiveOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Metadata delegates to the wrapped longrunning PrepareDeviceArchiveOperation.
	Metadata() (*mpc_keyspb.PrepareDeviceArchiveMetadata, error)
	// Done delegates to the wrapped longrunning PrepareDeviceArchiveOperation.
	Done() bool
	// Name delegates to the wrapped longrunning PrepareDeviceArchiveOperation.
	Name() string
}

ClientWrappedPrepareDeviceArchiveOperation is a generated interface for mpckey protoc-gen-go_gapic client WrappedPrepareDeviceArchiveOperation.

type ClientWrappedPrepareDeviceBackupOperation added in v1.0.6

type ClientWrappedPrepareDeviceBackupOperation interface {
	// PathPrefix returns the path prefix for the operation to be used in HTTP requests.
	// E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be:
	// `/waas/mpc_keys/v1/operations/<operationId>`.
	PathPrefix() string
	// Wait delegates to the wrapped longrunning PrepareDeviceBackupOperation with the
	// override LRO options and handling unwrapping client errors.
	Wait(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Poll delegates to the wrapped longrunning PrepareDeviceBackupOperation with the
	// override LRO options and handling unwrapping client errors.
	Poll(ctx context.Context, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// Metadata delegates to the wrapped longrunning PrepareDeviceBackupOperation.
	Metadata() (*mpc_keyspb.PrepareDeviceBackupMetadata, error)
	// Done delegates to the wrapped longrunning PrepareDeviceBackupOperation.
	Done() bool
	// Name delegates to the wrapped longrunning PrepareDeviceBackupOperation.
	Name() string
}

ClientWrappedPrepareDeviceBackupOperation is a generated interface for mpckey protoc-gen-go_gapic client WrappedPrepareDeviceBackupOperation.

type MPCKeyServiceClient

type MPCKeyServiceClient interface {
	// Close closes the connection to the API service. The user should invoke this when
	// the client is no longer required.
	Close() error
	// Connection returns a connection to the API service.
	//
	// Deprecated: Connections are now pooled so this method does not always
	// return the same resource.
	Connection() *grpc.ClientConn
	// GetOperation gets the latest state of a long-running operation.
	GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
	// RegisterDevice registers a new Device. A Device must be registered before
	// it can be added to a DeviceGroup.
	RegisterDevice(ctx context.Context, req *mpc_keyspb.RegisterDeviceRequest, opts ...gax.CallOption) (*mpc_keyspb.Device, error)
	// GetDevice gets a Device.
	GetDevice(ctx context.Context, req *mpc_keyspb.GetDeviceRequest, opts ...gax.CallOption) (*mpc_keyspb.Device, error)
	// CreateDeviceGroup creates a DeviceGroup. The DeviceGroup must contain exactly
	// one registered Device, and the Seed in the DeviceGroup must have at least one
	// HardenedChild. After calling this, use ListMPCOperations to poll for the pending
	// CreateDeviceGroup operation, and use the WaaS SDK’s ComputeMPCOperation to complete
	// the operation.
	CreateDeviceGroup(ctx context.Context, req *mpc_keyspb.CreateDeviceGroupRequest, opts ...gax.CallOption) (ClientWrappedCreateDeviceGroupOperation, error)
	// CreateDeviceGroupOperation returns the CreateDeviceGroupOperation indicated by the given name.
	CreateDeviceGroupOperation(name string) ClientWrappedCreateDeviceGroupOperation
	// GetDeviceGroup gets a DeviceGroup.
	GetDeviceGroup(ctx context.Context, req *mpc_keyspb.GetDeviceGroupRequest, opts ...gax.CallOption) (*mpc_keyspb.DeviceGroup, error)
	// ListMPCOperations lists the pending MPCOperations awaiting computation associated with
	// the given parent DeviceGroup. Use this API in combination with the WaaS SDK’s
	// ComputeMPCOperation method to complete the operation.
	ListMPCOperations(ctx context.Context, req *mpc_keyspb.ListMPCOperationsRequest, opts ...gax.CallOption) (*mpc_keyspb.ListMPCOperationsResponse, error)
	// CreateMPCKey creates an MPCKey. There must be a HardenedChild in the Seed of the parent
	// DeviceGroup which is a prefix of the derivation path provided in the MPCKey.
	CreateMPCKey(ctx context.Context, req *mpc_keyspb.CreateMPCKeyRequest, opts ...gax.CallOption) (*mpc_keyspb.MPCKey, error)
	// GetMPCKey gets an MPCKey.
	GetMPCKey(ctx context.Context, req *mpc_keyspb.GetMPCKeyRequest, opts ...gax.CallOption) (*mpc_keyspb.MPCKey, error)
	// CreateSignature creates a Signature using an MPCKey. After calling this, use ListMPCOperations
	// to poll for the pending CreateSignature operation, and use the WaaS SDK’s
	// ComputeMPCOperation to complete the operation.
	CreateSignature(ctx context.Context, req *mpc_keyspb.CreateSignatureRequest, opts ...gax.CallOption) (ClientWrappedCreateSignatureOperation, error)
	// CreateSignatureOperation returns the CreateSignatureOperation indicated by the given name.
	CreateSignatureOperation(name string) ClientWrappedCreateSignatureOperation
	// PrepareDeviceArchive prepares an archive in the local storage of the given Device. The archive contains
	// cryptographic materials that can be used to export MPCKeys, which have the given DeviceGroup as their parent.
	// The Device specified in the request must be a member of this DeviceGroup and must participate
	// in the associated MPC operation for the archive to be prepared. After calling this,
	// use ListMPCOperations to poll for the pending PrepareDeviceArchive operation, and use the WaaS SDK's
	// ComputeMPCOperation to complete the operation. Once the operation completes, the Device can utilize the
	// WaaS SDK to export the private keys corresponding to each of the MPCKeys under this DeviceGroup.
	PrepareDeviceArchive(ctx context.Context, req *mpc_keyspb.PrepareDeviceArchiveRequest, opts ...gax.CallOption) (ClientWrappedPrepareDeviceArchiveOperation, error)
	// PrepareDeviceArchiveOperation returns the PrepareDeviceArchiveOperation indicated by the given name.
	PrepareDeviceArchiveOperation(name string) ClientWrappedPrepareDeviceArchiveOperation
	// PrepareDeviceBackup prepares a backup in the given Device. The backup contains certain
	// cryptographic materials that can be used to restore MPCKeys, which have the given DeviceGroup as their parent,
	// on a new Device. The Device specified in the request must be a member of this DeviceGroup and must participate
	// in the associated MPC operation for the backup to be prepared.
	// After calling this RPC, use ListMPCOperations to poll for the pending PrepareDeviceBackup operation,
	// and use the WaaS SDK's ComputeMPCOperation to complete the operation. Once the operation completes,
	// the Device can utilize WaaS SDK to download the backup bundle. We recommend storing this backup bundle securely
	// in a storage provider of your choice. If the user loses access to their existing Device and wants to recover
	// MPCKeys in the given DeviceGroup on a new Device, use AddDevice RPC on the MPCKeyService.
	PrepareDeviceBackup(ctx context.Context, req *mpc_keyspb.PrepareDeviceBackupRequest, opts ...gax.CallOption) (ClientWrappedPrepareDeviceBackupOperation, error)
	// PrepareDeviceBackupOperation returns the PrepareDeviceBackupOperation indicated by the given name.
	PrepareDeviceBackupOperation(name string) ClientWrappedPrepareDeviceBackupOperation
	// AddDevice adds a Device to an existing DeviceGroup. Prior to this API being called, the Device must be registered using
	// RegisterDevice RPC. The Device must have access to the backup created with PrepareDeviceBackup RPC to compute this
	// operation. After calling this RPC, use ListMPCOperations to poll for the pending AddDevice operation,
	// and use the WaaS SDK's ComputeAddDeviceMPCOperation to complete the operation.
	// After the operation is computed on WaaS SDK, the Device will have access to cryptographic materials
	// required to process MPCOperations for this DeviceGroup.
	// Once the operation completes on MPCKeyService, the Device will be added to the given DeviceGroup as a new member
	// and all existing Devices in the DeviceGroup will stay functional.
	// MPCKeyService will expose RemoveDevice RPC in a future release that can remove any of the
	// existing Devices from the DeviceGroup.
	AddDevice(ctx context.Context, req *mpc_keyspb.AddDeviceRequest, opts ...gax.CallOption) (ClientWrappedAddDeviceOperation, error)
	// AddDeviceOperation returns the AddDeviceOperation indicated by the given name.
	AddDeviceOperation(name string) ClientWrappedAddDeviceOperation
	// RevokeDevice revokes a registered Device. This operation removes the registered Device from all the DeviceGroups that it is a
	// part of. Once the Device is revoked, cryptographic materials in your physical Device are invalidated,
	// and the Device can no longer participate in any MPCOperations of the DeviceGroups it was a part of.
	// Use this API in scenarios such as losing the existing Device, switching to a new physical Device, etc.
	// Ensure that a new Device is successfully added to your DeviceGroups using the AddDevice RPC before invoking
	// the RevokeDevice RPC.
	RevokeDevice(ctx context.Context, req *mpc_keyspb.RevokeDeviceRequest, opts ...gax.CallOption) error
}

MPCKeyServiceClient is a generated interface for mpckey protoc-gen-go_gapic client mpcKeyServiceClient.

func NewMPCKeyServiceClient

func NewMPCKeyServiceClient(
	ctx context.Context,
	waasOpts ...clients.WaaSClientOption,
) (MPCKeyServiceClient, error)

NewMPCKeyServiceClient returns a MPCKeyServiceClient based on the given inputs.

type MPCTransactionIterator

type MPCTransactionIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*mpc_transactionspb.MPCTransaction, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *mpc_transactionspb.ListMPCTransactionsResponse
}

MPCTransactionIterator is an interface for iterating through the response to ListMPCTransactions.

type MPCTransactionServiceClient

type MPCTransactionServiceClient interface {
	// Close closes the connection to the API service. The user should invoke this when
	// the client is no longer required.
	Close() error
	// Connection returns a connection to the API service.
	//
	// Deprecated: Connections are now pooled so this method does not always
	// return the same resource.
	Connection() *grpc.ClientConn
	// GetOperation gets the latest state of a long-running operation.
	GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
	// CreateMPCTransaction creates an MPCTransaction. The long-running operation returned from this API will contain
	// information about the state of the MPCTransaction that can be used to complete the operation.
	// The LRO will be considered Done once the MPCTransaction reaches a state of CONFIRMING (i.e.
	// broadcast on-chain). See the MPCTransaction documentation for its lifecycle.
	CreateMPCTransaction(ctx context.Context, req *mpc_transactionspb.CreateMPCTransactionRequest, opts ...gax.CallOption) (ClientWrappedCreateMPCTransactionOperation, error)
	// CreateMPCTransactionOperation returns the CreateMPCTransactionOperation indicated by the given name.
	CreateMPCTransactionOperation(name string) ClientWrappedCreateMPCTransactionOperation
	// GetMPCTransaction gets an MPCTransaction. There can be a delay between when
	// CreateMPCTransaction is called and when this API will begin returning an
	// MPCTransaction in the CREATED state.
	GetMPCTransaction(ctx context.Context, req *mpc_transactionspb.GetMPCTransactionRequest, opts ...gax.CallOption) (*mpc_transactionspb.MPCTransaction, error)
	// ListMPCTransactions lists MPCTransactions.
	ListMPCTransactions(ctx context.Context, req *mpc_transactionspb.ListMPCTransactionsRequest, opts ...gax.CallOption) MPCTransactionIterator
}

MPCTransactionServiceClient is a generated interface for mpctransaction protoc-gen-go_gapic client mpcTransactionServiceClient.

func NewMPCTransactionServiceClient

func NewMPCTransactionServiceClient(
	ctx context.Context,
	waasOpts ...clients.WaaSClientOption,
) (MPCTransactionServiceClient, error)

NewMPCTransactionServiceClient returns a MPCTransactionServiceClient based on the given inputs.

type MPCWalletIterator

type MPCWalletIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*mpc_walletspb.MPCWallet, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *mpc_walletspb.ListMPCWalletsResponse
}

MPCWalletIterator is an interface for iterating through the response to ListMPCWallets.

type MPCWalletServiceClient

type MPCWalletServiceClient interface {
	// Close closes the connection to the API service. The user should invoke this when
	// the client is no longer required.
	Close() error
	// Connection returns a connection to the API service.
	//
	// Deprecated: Connections are now pooled so this method does not always
	// return the same resource.
	Connection() *grpc.ClientConn
	// GetOperation gets the latest state of a long-running operation.
	GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
	// CreateMPCWallet creates an MPCWallet. The Device in the request must have been registered
	// using MPCKeyService’s RegisterDevice before this method is called. Under the hood, this
	// calls MPCKeyService’s CreateDeviceGroup with the appropriate parameters. After calling this,
	// use MPCKeyService’s ListMPCOperations to poll for the pending CreateDeviceGroup operation,
	// and use the WaaS SDK’s ComputeMPCOperation to complete the operation.
	CreateMPCWallet(ctx context.Context, req *mpc_walletspb.CreateMPCWalletRequest, opts ...gax.CallOption) (ClientWrappedCreateMPCWalletOperation, error)
	// CreateMPCWalletOperation returns the CreateMPCWalletOperation indicated by the given name.
	CreateMPCWalletOperation(name string) ClientWrappedCreateMPCWalletOperation
	// GetMPCWallet gets an MPCWallet.
	GetMPCWallet(ctx context.Context, req *mpc_walletspb.GetMPCWalletRequest, opts ...gax.CallOption) (*mpc_walletspb.MPCWallet, error)
	// ListMPCWallets lists MPCWallets.
	ListMPCWallets(ctx context.Context, req *mpc_walletspb.ListMPCWalletsRequest, opts ...gax.CallOption) MPCWalletIterator
	// GenerateAddress generates an Address within an MPCWallet.
	GenerateAddress(ctx context.Context, req *mpc_walletspb.GenerateAddressRequest, opts ...gax.CallOption) (*mpc_walletspb.Address, error)
	// GetAddress gets an Address.
	GetAddress(ctx context.Context, req *mpc_walletspb.GetAddressRequest, opts ...gax.CallOption) (*mpc_walletspb.Address, error)
	// ListAddresses lists Addresses within an MPCWallet.
	ListAddresses(ctx context.Context, req *mpc_walletspb.ListAddressesRequest, opts ...gax.CallOption) AddressIterator
	// ListBalances lists Balances.
	ListBalances(ctx context.Context, req *mpc_walletspb.ListBalancesRequest, opts ...gax.CallOption) BalanceIterator
	// ListBalanceDetails lists BalanceDetails.
	ListBalanceDetails(ctx context.Context, req *mpc_walletspb.ListBalanceDetailsRequest, opts ...gax.CallOption) BalanceDetailIterator
}

MPCWalletServiceClient is a generated interface for mpcwallet protoc-gen-go_gapic client mpcWalletServiceClient.

func NewMPCWalletServiceClient

func NewMPCWalletServiceClient(
	ctx context.Context,
	waasOpts ...clients.WaaSClientOption,
) (MPCWalletServiceClient, error)

NewMPCWalletServiceClient returns a MPCWalletServiceClient based on the given inputs.

type NetworkIterator

type NetworkIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*blockchainpb.Network, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *blockchainpb.ListNetworksResponse
}

NetworkIterator is an interface for iterating through the response to ListNetworks.

type PoolIterator

type PoolIterator interface {
	// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
	PageInfo() *iterator.PageInfo

	// Next returns the next result. Its second return value is iterator.Done if there are no more
	// results. Once Next returns Done, all subsequent calls will return Done.
	Next() (*poolspb.Pool, error)

	// Response is the raw response for the current page.
	// Calling Next() or InternalFetch() updates this value.
	Response() *poolspb.ListPoolsResponse
}

PoolIterator is an interface for iterating through the response to ListPools.

type PoolServiceClient

type PoolServiceClient interface {
	// Close closes the connection to the API service. The user should invoke this when
	// the client is no longer required.
	Close() error
	// Connection returns a connection to the API service.
	//
	// Deprecated: Connections are now pooled so this method does not always
	// return the same resource.
	Connection() *grpc.ClientConn
	// CreatePool creates a Pool. Call this method before creating any resources scoped to
	// a Pool.
	CreatePool(ctx context.Context, req *poolspb.CreatePoolRequest, opts ...gax.CallOption) (*poolspb.Pool, error)
	// GetPool gets a Pool.
	GetPool(ctx context.Context, req *poolspb.GetPoolRequest, opts ...gax.CallOption) (*poolspb.Pool, error)
	// ListPools lists the Pools of an Address. The Address must belong to a Pool.
	ListPools(ctx context.Context, req *poolspb.ListPoolsRequest, opts ...gax.CallOption) PoolIterator
}

PoolServiceClient is a generated interface for pools protoc-gen-go_gapic client poolServiceClient.

func NewPoolServiceClient

func NewPoolServiceClient(
	ctx context.Context,
	waasOpts ...clients.WaaSClientOption,
) (PoolServiceClient, error)

NewPoolServiceClient returns a PoolServiceClient based on the given inputs.

type ProtocolServiceClient

type ProtocolServiceClient interface {
	// Close closes the connection to the API service. The user should invoke this when
	// the client is no longer required.
	Close() error
	// Connection returns a connection to the API service.
	//
	// Deprecated: Connections are now pooled so this method does not always
	// return the same resource.
	Connection() *grpc.ClientConn
	// ConstructTransaction constructs an unsigned transaction. The payloads in the
	// required_signatures of the returned Transaction must be signed before the Transaction
	// is broadcast.
	ConstructTransaction(ctx context.Context, req *protocolspb.ConstructTransactionRequest, opts ...gax.CallOption) (*typespb.Transaction, error)
	// ConstructTransferTransaction constructs an unsigned transfer transaction.
	// A transfer transaction is a transaction that moves an Asset from one Address to another.
	// The payloads in the required_signatures of the returned Transaction must be signed before
	// the Transaction is broadcast.
	ConstructTransferTransaction(ctx context.Context, req *protocolspb.ConstructTransferTransactionRequest, opts ...gax.CallOption) (*typespb.Transaction, error)
	// BroadcastTransaction broadcasts a transaction to a node in the Network.
	BroadcastTransaction(ctx context.Context, req *protocolspb.BroadcastTransactionRequest, opts ...gax.CallOption) (*typespb.Transaction, error)
	// EstimateFee estimates the current network fee for the specified Network. For EVM Networks, this
	// corresponds to the gas_price, max_fee_per_gas, and max_priority_fee_per_gas.
	EstimateFee(ctx context.Context, req *protocolspb.EstimateFeeRequest, opts ...gax.CallOption) (*protocolspb.EstimateFeeResponse, error)
}

ProtocolServiceClient is a generated interface for protocols protoc-gen-go_gapic client protocolServiceClient.

func NewProtocolServiceClient

func NewProtocolServiceClient(
	ctx context.Context,
	waasOpts ...clients.WaaSClientOption,
) (ProtocolServiceClient, error)

NewProtocolServiceClient returns a ProtocolServiceClient based on the given inputs.

type WrappedAddDeviceOperation

type WrappedAddDeviceOperation struct {
	*innerClient.AddDeviceOperation
	// contains filtered or unexported fields
}

WrappedAddDeviceOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedAddDeviceOperation) Done added in v1.0.6

func (w *WrappedAddDeviceOperation) Done() bool

Done delegates to the wrapped longrunning AddDeviceOperation.

func (*WrappedAddDeviceOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning AddDeviceOperation.

func (*WrappedAddDeviceOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning AddDeviceOperation.

func (*WrappedAddDeviceOperation) PathPrefix

func (w *WrappedAddDeviceOperation) PathPrefix() string

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be: `/waas/mpc_keys/v1/operations/<operationId>`.

func (*WrappedAddDeviceOperation) Poll

func (w *WrappedAddDeviceOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Poll delegates to the wrapped longrunning AddDeviceOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedAddDeviceOperation) Wait

func (w *WrappedAddDeviceOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Wait delegates to the wrapped longrunning AddDeviceOperation with the override LRO options and handling unwrapping client errors.

type WrappedCreateDeviceGroupOperation

type WrappedCreateDeviceGroupOperation struct {
	*innerClient.CreateDeviceGroupOperation
	// contains filtered or unexported fields
}

WrappedCreateDeviceGroupOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedCreateDeviceGroupOperation) Done added in v1.0.6

Done delegates to the wrapped longrunning CreateDeviceGroupOperation.

func (*WrappedCreateDeviceGroupOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning CreateDeviceGroupOperation.

func (*WrappedCreateDeviceGroupOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning CreateDeviceGroupOperation.

func (*WrappedCreateDeviceGroupOperation) PathPrefix

func (w *WrappedCreateDeviceGroupOperation) PathPrefix() string

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be: `/waas/mpc_keys/v1/operations/<operationId>`.

func (*WrappedCreateDeviceGroupOperation) Poll

func (w *WrappedCreateDeviceGroupOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Poll delegates to the wrapped longrunning CreateDeviceGroupOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedCreateDeviceGroupOperation) Wait

func (w *WrappedCreateDeviceGroupOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Wait delegates to the wrapped longrunning CreateDeviceGroupOperation with the override LRO options and handling unwrapping client errors.

type WrappedCreateMPCTransactionOperation

type WrappedCreateMPCTransactionOperation struct {
	*innerClient.CreateMPCTransactionOperation
	// contains filtered or unexported fields
}

WrappedCreateMPCTransactionOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedCreateMPCTransactionOperation) Done added in v1.0.6

Done delegates to the wrapped longrunning CreateMPCTransactionOperation.

func (*WrappedCreateMPCTransactionOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning CreateMPCTransactionOperation.

func (*WrappedCreateMPCTransactionOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning CreateMPCTransactionOperation.

func (*WrappedCreateMPCTransactionOperation) PathPrefix

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_transactions`, then the request path would be: `/waas/mpc_transactions/v1/operations/<operationId>`.

func (*WrappedCreateMPCTransactionOperation) Poll

func (w *WrappedCreateMPCTransactionOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_transactionspb.MPCTransaction, error)

Poll delegates to the wrapped longrunning CreateMPCTransactionOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedCreateMPCTransactionOperation) Wait

func (w *WrappedCreateMPCTransactionOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_transactionspb.MPCTransaction, error)

Wait delegates to the wrapped longrunning CreateMPCTransactionOperation with the override LRO options and handling unwrapping client errors.

type WrappedCreateMPCWalletOperation

type WrappedCreateMPCWalletOperation struct {
	*innerClient.CreateMPCWalletOperation
	// contains filtered or unexported fields
}

WrappedCreateMPCWalletOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedCreateMPCWalletOperation) Done added in v1.0.6

Done delegates to the wrapped longrunning CreateMPCWalletOperation.

func (*WrappedCreateMPCWalletOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning CreateMPCWalletOperation.

func (*WrappedCreateMPCWalletOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning CreateMPCWalletOperation.

func (*WrappedCreateMPCWalletOperation) PathPrefix

func (w *WrappedCreateMPCWalletOperation) PathPrefix() string

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_wallets`, then the request path would be: `/waas/mpc_wallets/v1/operations/<operationId>`.

func (*WrappedCreateMPCWalletOperation) Poll

func (w *WrappedCreateMPCWalletOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_walletspb.MPCWallet, error)

Poll delegates to the wrapped longrunning CreateMPCWalletOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedCreateMPCWalletOperation) Wait

func (w *WrappedCreateMPCWalletOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_walletspb.MPCWallet, error)

Wait delegates to the wrapped longrunning CreateMPCWalletOperation with the override LRO options and handling unwrapping client errors.

type WrappedCreateSignatureOperation

type WrappedCreateSignatureOperation struct {
	*innerClient.CreateSignatureOperation
	// contains filtered or unexported fields
}

WrappedCreateSignatureOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedCreateSignatureOperation) Done added in v1.0.6

Done delegates to the wrapped longrunning CreateSignatureOperation.

func (*WrappedCreateSignatureOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning CreateSignatureOperation.

func (*WrappedCreateSignatureOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning CreateSignatureOperation.

func (*WrappedCreateSignatureOperation) PathPrefix

func (w *WrappedCreateSignatureOperation) PathPrefix() string

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be: `/waas/mpc_keys/v1/operations/<operationId>`.

func (*WrappedCreateSignatureOperation) Poll

func (w *WrappedCreateSignatureOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.Signature, error)

Poll delegates to the wrapped longrunning CreateSignatureOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedCreateSignatureOperation) Wait

func (w *WrappedCreateSignatureOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.Signature, error)

Wait delegates to the wrapped longrunning CreateSignatureOperation with the override LRO options and handling unwrapping client errors.

type WrappedPrepareDeviceArchiveOperation

type WrappedPrepareDeviceArchiveOperation struct {
	*innerClient.PrepareDeviceArchiveOperation
	// contains filtered or unexported fields
}

WrappedPrepareDeviceArchiveOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedPrepareDeviceArchiveOperation) Done added in v1.0.6

Done delegates to the wrapped longrunning PrepareDeviceArchiveOperation.

func (*WrappedPrepareDeviceArchiveOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning PrepareDeviceArchiveOperation.

func (*WrappedPrepareDeviceArchiveOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning PrepareDeviceArchiveOperation.

func (*WrappedPrepareDeviceArchiveOperation) PathPrefix

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be: `/waas/mpc_keys/v1/operations/<operationId>`.

func (*WrappedPrepareDeviceArchiveOperation) Poll

func (w *WrappedPrepareDeviceArchiveOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Poll delegates to the wrapped longrunning PrepareDeviceArchiveOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedPrepareDeviceArchiveOperation) Wait

func (w *WrappedPrepareDeviceArchiveOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Wait delegates to the wrapped longrunning PrepareDeviceArchiveOperation with the override LRO options and handling unwrapping client errors.

type WrappedPrepareDeviceBackupOperation

type WrappedPrepareDeviceBackupOperation struct {
	*innerClient.PrepareDeviceBackupOperation
	// contains filtered or unexported fields
}

WrappedPrepareDeviceBackupOperation wraps the long-running operation to handle unwrapping errors and setting the LRO options.

func (*WrappedPrepareDeviceBackupOperation) Done added in v1.0.6

Done delegates to the wrapped longrunning PrepareDeviceBackupOperation.

func (*WrappedPrepareDeviceBackupOperation) Metadata added in v1.0.6

Metadata delegates to the wrapped longrunning PrepareDeviceBackupOperation.

func (*WrappedPrepareDeviceBackupOperation) Name added in v1.0.6

Name delegates to the wrapped longrunning PrepareDeviceBackupOperation.

func (*WrappedPrepareDeviceBackupOperation) PathPrefix

PathPrefix returns the path prefix for the operation to be used in HTTP requests. E.g. if the path prefix is `/waas/mpc_keys`, then the request path would be: `/waas/mpc_keys/v1/operations/<operationId>`.

func (*WrappedPrepareDeviceBackupOperation) Poll

func (w *WrappedPrepareDeviceBackupOperation) Poll(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Poll delegates to the wrapped longrunning PrepareDeviceBackupOperation with the override LRO options and handling unwrapping client errors.

func (*WrappedPrepareDeviceBackupOperation) Wait

func (w *WrappedPrepareDeviceBackupOperation) Wait(
	ctx context.Context,
	opts ...gax.CallOption,
) (*mpc_keyspb.DeviceGroup, error)

Wait delegates to the wrapped longrunning PrepareDeviceBackupOperation with the override LRO options and handling unwrapping client errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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