diff --git a/README.md b/README.md index 55f848f..bad4a13 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ This documentation will guide you through: - **Gnosis Address**: `0x694e5de9345d39C148DA90e6939A3fd2142267D9` - **Address of the API**: - - **Chiado Address**: `0xb9C303443c9af84777e60D5C987AbF0c43844918` + - **Chiado Address**: `0xd150bbf86C686de1a25820A94c2C2397e0bC54ab` - **Gnosis Address**: `0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc` ### Rate limits / Authorization @@ -261,14 +261,14 @@ curl -X GET "https:///event/get_trigger_expiration_block?eon=1&ide To encrypt commitments, obtain the encryption data associated with your identity. There are two endpoints: -- **Time-based**: `/time/get_data_for_encryption` — parameters `address` (required) and `identityPrefix` (optional). Use the address that will register the identity (your account if self-registering, or the API address: Gnosis `0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc`, Chiado `0xb9C303443c9af84777e60D5C987AbF0c43844918`). +- **Time-based**: `/time/get_data_for_encryption` — parameters `address` (required) and `identityPrefix` (optional). Use the address that will register the identity (your account if self-registering, or the API address: Gnosis `0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc`, Chiado `0xd150bbf86C686de1a25820A94c2C2397e0bC54ab`). - **Event-based**: `/event/get_data_for_encryption` — parameters `triggerDefinition` (required) and `identityPrefix` (optional). Refer to the Swagger documentation for specifics on these endpoints. #### Example Request (Time-based) ```bash -curl -X GET "https:///time/get_data_for_encryption?address=0xb9C303443c9af84777e60D5C987AbF0c43844918&identityPrefix=0x79bc8f6b4fcb02c651d6a702b7ad965c7fca19e94a9646d21ae90c8b54c030a0" +curl -X GET "https:///time/get_data_for_encryption?address=0xd150bbf86C686de1a25820A94c2C2397e0bC54ab&identityPrefix=0x79bc8f6b4fcb02c651d6a702b7ad965c7fca19e94a9646d21ae90c8b54c030a0" ``` #### Example Request (Event-based) @@ -467,4 +467,4 @@ For additional support or inquiries: --- -Thank you for using Shutter! Together, we are building a more secure and decentralized future. +Thank you for using Shutter! Together, we are building a more secure and decentralized future. \ No newline at end of file diff --git a/docs/docs.go b/docs/docs.go index 5c8800c..7f55ee1 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -426,7 +426,7 @@ const docTemplate = `{ "parameters": [ { "type": "string", - "description": "Ethereum address associated with the identity. If you are registering the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the address: 0xb9C303443c9af84777e60D5C987AbF0c43844918", + "description": "Ethereum address associated with the identity. If you are registering the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the address: 0xd150bbf86C686de1a25820A94c2C2397e0bC54ab", "name": "address", "in": "query", "required": true diff --git a/docs/swagger.json b/docs/swagger.json index 5f569d1..c02ef25 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -417,7 +417,7 @@ "parameters": [ { "type": "string", - "description": "Ethereum address associated with the identity. If you are registering the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the address: 0xb9C303443c9af84777e60D5C987AbF0c43844918", + "description": "Ethereum address associated with the identity. If you are registering the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the address: 0xd150bbf86C686de1a25820A94c2C2397e0bC54ab", "name": "address", "in": "query", "required": true diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7c27289..5cad9d2 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -424,7 +424,7 @@ paths: the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the - address: 0xb9C303443c9af84777e60D5C987AbF0c43844918' + address: 0xd150bbf86C686de1a25820A94c2C2397e0bC54ab' in: query name: address required: true diff --git a/internal/service/crypto.go b/internal/service/crypto.go index aff00ba..ed529f4 100644 --- a/internal/service/crypto.go +++ b/internal/service/crypto.go @@ -140,7 +140,7 @@ func (svc *CryptoService) GetDecryptionKey(ctx *gin.Context) { // @Description Retrieves all the necessary data required by clients for encrypting any message using time-based identity computation. // @Tags Crypto // @Produce json -// @Param address query string true "Ethereum address associated with the identity. If you are registering the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the address: 0xb9C303443c9af84777e60D5C987AbF0c43844918" +// @Param address query string true "Ethereum address associated with the identity. If you are registering the identity yourself, pass the address of the account making the registration. If you want the API to register the identity on gnosis mainnet, pass the address: 0x228DefCF37Da29475F0EE2B9E4dfAeDc3b0746bc. For chiado pass the address: 0xd150bbf86C686de1a25820A94c2C2397e0bC54ab" // @Param identityPrefix query string false "Optional identity prefix. You can generate it on your end and pass it to this endpoint, or allow the API to randomly generate one for you." // @Success 200 {object} usecase.GetDataForEncryptionResponse "Success." // @Failure 400 {object} error.Http "Invalid Get data for encryption request." @@ -490,4 +490,4 @@ func (svc *CryptoService) GetEventTriggerExpirationBlock(ctx *gin.Context) { ctx.JSON(http.StatusOK, gin.H{ "message": data, }) -} +} \ No newline at end of file