Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 51fdd66

Browse files
authored
Update MPCOperation documentation (#29)
1 parent c1f6828 commit 51fdd66

19 files changed

+928
-720
lines changed

gen/go/coinbase/cloud/clients/v1/doc.go

+6-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/coinbase/cloud/clients/v1/internal/snippets/snippet_metadata.coinbase.cloud.mpc_keys.v1.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{
1515
"regionTag": "api_v1_generated_MPCKeyService_AddDevice_sync",
1616
"title": "api AddDevice Sample",
17-
"description": "AddDevice adds a Device to an existing DeviceGroup. Prior to this API being called, the Device must be registered using\nRegisterDevice RPC. The Device must have access to the backup created with PrepareDeviceBackup RPC to compute this\noperation. After calling this RPC, use ListMPCOperations to poll for the pending AddDevice operation,\nand use the WaaS SDK's ComputeAddDeviceMPCOperation to complete the operation.\nAfter the operation is computed on WaaS SDK, the Device will have access to cryptographic materials\nrequired to process MPCOperations for this DeviceGroup.\nOnce the operation completes on MPCKeyService, the Device will be added to the given DeviceGroup as a new member\nand all existing Devices in the DeviceGroup will stay functional.\nUse the RevokeDevice RPC to remove any of the existing Devices from the DeviceGroup.",
17+
"description": "AddDevice adds a Device to an existing DeviceGroup. Prior to this API being called, the Device must be registered using\nRegisterDevice RPC. The Device must have access to the backup created with PrepareDeviceBackup RPC to compute this\noperation. After calling this RPC, use ListMPCOperations to poll for the pending AddDevice operation,\nand use the WaaS SDK's ComputeAddDeviceMPCOperation to complete the operation.\nAfter the operation is computed on WaaS SDK, the Device will have access to cryptographic materials\nrequired to process MPCOperations for this DeviceGroup.\nOnce the operation completes on MPCKeyService, the Device will be added to the given DeviceGroup as a new member\nand all existing Devices in the DeviceGroup will stay functional.\nUse the RevokeDevice RPC to remove any of the existing Devices from the DeviceGroup.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
1818
"file": "MPCKeyClient/AddDevice/main.go",
1919
"language": "GO",
2020
"clientMethod": {
@@ -60,7 +60,7 @@
6060
{
6161
"regionTag": "api_v1_generated_MPCKeyService_CreateDeviceGroup_sync",
6262
"title": "api CreateDeviceGroup Sample",
63-
"description": "CreateDeviceGroup creates a DeviceGroup. The DeviceGroup must contain exactly one registered Device, and\nthe Seed in the DeviceGroup must have at least one HardenedChild. After calling this,\nuse ListMPCOperations to poll for the pending CreateDeviceGroup operation, and use the WaaS SDK's\nComputeMPCOperation to complete the operation.",
63+
"description": "CreateDeviceGroup creates a DeviceGroup. The DeviceGroup must contain exactly one registered Device, and\nthe Seed in the DeviceGroup must have at least one HardenedChild. After calling this,\nuse ListMPCOperations to poll for the pending CreateDeviceGroup operation, and use the WaaS SDK's\nComputeMPCOperation to complete the operation.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
6464
"file": "MPCKeyClient/CreateDeviceGroup/main.go",
6565
"language": "GO",
6666
"clientMethod": {
@@ -152,7 +152,7 @@
152152
{
153153
"regionTag": "api_v1_generated_MPCKeyService_CreateSignature_sync",
154154
"title": "api CreateSignature Sample",
155-
"description": "CreateSignature creates a Signature using an MPCKey. After calling this, use ListMPCOperations\nto poll for the pending CreateSignature operation, and use the WaaS SDK's\ncomputeMPCOperation to complete the operation.",
155+
"description": "CreateSignature creates a Signature using an MPCKey. After calling this, use ListMPCOperations\nto poll for the pending CreateSignature operation, and use the WaaS SDK's\ncomputeMPCOperation to complete the operation.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
156156
"file": "MPCKeyClient/CreateSignature/main.go",
157157
"language": "GO",
158158
"clientMethod": {
@@ -382,7 +382,7 @@
382382
{
383383
"regionTag": "api_v1_generated_MPCKeyService_PrepareDeviceArchive_sync",
384384
"title": "api PrepareDeviceArchive Sample",
385-
"description": "PrepareDeviceArchive prepares an archive in the local storage of the given Device. The archive contains cryptographic materials\nthat can be used to export MPCKeys, which have the given DeviceGroup as their parent.\nThe Device specified in the request must be a member of this DeviceGroup and must participate\nin the associated MPC operation for the archive to be prepared. After calling this,\nuse ListMPCOperations to poll for the pending PrepareDeviceArchive operation, and use the WaaS SDK's\nComputeMPCOperation to complete the operation. Once the operation completes, the Device can utilize the\nWaaS SDK to export the private keys corresponding to each of the MPCKeys under this DeviceGroup.",
385+
"description": "PrepareDeviceArchive prepares an archive in the local storage of the given Device. The archive contains cryptographic materials\nthat can be used to export MPCKeys, which have the given DeviceGroup as their parent.\nThe Device specified in the request must be a member of this DeviceGroup and must participate\nin the associated MPC operation for the archive to be prepared. After calling this,\nuse ListMPCOperations to poll for the pending PrepareDeviceArchive operation, and use the WaaS SDK's\nComputeMPCOperation to complete the operation. Once the operation completes, the Device can utilize the\nWaaS SDK to export the private keys corresponding to each of the MPCKeys under this DeviceGroup.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
386386
"file": "MPCKeyClient/PrepareDeviceArchive/main.go",
387387
"language": "GO",
388388
"clientMethod": {
@@ -428,7 +428,7 @@
428428
{
429429
"regionTag": "api_v1_generated_MPCKeyService_PrepareDeviceBackup_sync",
430430
"title": "api PrepareDeviceBackup Sample",
431-
"description": "PrepareDeviceBackup prepares a backup in the given Device. The backup contains certain cryptographic materials\nthat can be used to restore MPCKeys, which have the given DeviceGroup as their parent, on a new Device.\nThe Device specified in the request must be a member of this DeviceGroup and must participate in the associated\nMPC operation for the backup to be prepared.\nAfter calling this RPC, use ListMPCOperations to poll for the pending PrepareDeviceBackup operation,\nand use the WaaS SDK's ComputeMPCOperation to complete the operation. Once the operation completes,\nthe Device can utilize WaaS SDK to download the backup bundle. We recommend storing this backup bundle securely\nin a storage provider of your choice. If the user loses access to their existing Device and wants to recover\nMPCKeys in the given DeviceGroup on a new Device, use AddDevice RPC on the MPCKeyService.",
431+
"description": "PrepareDeviceBackup prepares a backup in the given Device. The backup contains certain cryptographic materials\nthat can be used to restore MPCKeys, which have the given DeviceGroup as their parent, on a new Device.\nThe Device specified in the request must be a member of this DeviceGroup and must participate in the associated\nMPC operation for the backup to be prepared.\nAfter calling this RPC, use ListMPCOperations to poll for the pending PrepareDeviceBackup operation,\nand use the WaaS SDK's ComputeMPCOperation to complete the operation. Once the operation completes,\nthe Device can utilize WaaS SDK to download the backup bundle. We recommend storing this backup bundle securely\nin a storage provider of your choice. If the user loses access to their existing Device and wants to recover\nMPCKeys in the given DeviceGroup on a new Device, use AddDevice RPC on the MPCKeyService.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
432432
"file": "MPCKeyClient/PrepareDeviceBackup/main.go",
433433
"language": "GO",
434434
"clientMethod": {

gen/go/coinbase/cloud/clients/v1/internal/snippets/snippet_metadata.coinbase.cloud.mpc_transactions.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{
1515
"regionTag": "api_v1_generated_MPCTransactionService_CreateMPCTransaction_sync",
1616
"title": "api CreateMPCTransaction Sample",
17-
"description": "CreateMPCTransaction creates an MPCTransaction. The long-running operation returned from this API contains\ninformation about the state of the MPCTransaction that can be used to complete the operation.\nThe LRO is considered Done once the MPCTransaction reaches a state of `CONFIRMING`` (i.e.,\nbroadcast on-chain). See the MPCTransaction documentation for its lifecycle.",
17+
"description": "CreateMPCTransaction creates an MPCTransaction. The long-running operation returned from this API contains\ninformation about the state of the MPCTransaction that can be used to complete the operation.\nThe LRO is considered Done once the MPCTransaction reaches a state of `CONFIRMING`` (i.e.,\nbroadcast on-chain). See the MPCTransaction documentation for its lifecycle.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
1818
"file": "MPCTransactionClient/CreateMPCTransaction/main.go",
1919
"language": "GO",
2020
"clientMethod": {

gen/go/coinbase/cloud/clients/v1/internal/snippets/snippet_metadata.coinbase.cloud.mpc_wallets.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{
1515
"regionTag": "api_v1_generated_MPCWalletService_CreateMPCWallet_sync",
1616
"title": "api CreateMPCWallet Sample",
17-
"description": "CreateMPCWallet creates an MPCWallet. The Device in the request must have been registered using MPCKeyService's\nRegisterDevice before this method is called. Under the hood, this calls MPCKeyService's\nCreateDeviceGroup with the appropriate parameters. After calling this, use MPCKeyService's\nListMPCOperations to poll for the pending CreateDeviceGroup operation, and use the WaaS SDK's\ncomputeMPCOperation to complete the operation.",
17+
"description": "CreateMPCWallet creates an MPCWallet. The Device in the request must have been registered using MPCKeyService's\nRegisterDevice before this method is called. Under the hood, this calls MPCKeyService's\nCreateDeviceGroup with the appropriate parameters. After calling this, use MPCKeyService's\nListMPCOperations to poll for the pending CreateDeviceGroup operation, and use the WaaS SDK's\ncomputeMPCOperation to complete the operation.\nNote: because the creation of MPC operations is asynchronous, ListMPCOperations may return a\nNOT_FOUND error immediately after calling this. To complete the operation, continue polling\nListMPCOperations even after it returns a NOT_FOUND error.",
1818
"file": "MPCWalletClient/CreateMPCWallet/main.go",
1919
"language": "GO",
2020
"clientMethod": {

0 commit comments

Comments
 (0)