Skip to content

Commit

Permalink
Merge pull-request #38
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Feb 8, 2024
2 parents d0005e2 + 3b6ecf5 commit f49bf8f
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 39 deletions.
24 changes: 12 additions & 12 deletions api/public_api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
},
{
"name": "Wallets",
"description": "Wallets contain collections of deterministically generated cryptographic public / private key pairs that share a common seed. Turnkey securely holds the common seed, but only you can access it. In most cases, Wallets should be preferred over Private Keys since they can be represented by a mnemonic phrase, used across a variety of cryptographic curves, and can derive many addresses.\n\nDerived addresses can be used to create digital signatures using the corresponding underlying private key. See [Signers](./api#tag/Signers) for more information"
"description": "Wallets contain collections of deterministically generated cryptographic public / private key pairs that share a common seed. Turnkey securely holds the common seed, but only you can access it. In most cases, Wallets should be preferred over Private Keys since they can be represented by a mnemonic phrase, used across a variety of cryptographic curves, and can derive many addresses.\n\nDerived addresses can be used to create digital signatures using the corresponding underlying private key. See [Signing](./api#tag/Signing) for more information"
},
{
"name": "Signers",
"description": "Signers allow you to create digitial signatures. Signatures are used to validate the authenticity and integrity of a digital message. Turnkey makes it easy to produce signatures by allowing you to sign with an address. If Turnkey doesn't yet support an address format you need, you can generate and sign with the public key instead by using the address format `ADDRESS_FORMAT_COMPRESSED`."
"name": "Signing",
"description": "Signers allow you to create digital signatures. Signatures are used to validate the authenticity and integrity of a digital message. Turnkey makes it easy to produce signatures by allowing you to sign with an address. If Turnkey doesn't yet support an address format you need, you can generate and sign with the public key instead by using the address format `ADDRESS_FORMAT_COMPRESSED`."
},
{
"name": "Private Keys",
"description": "Private Keys are cryptographic public / private key pairs that can be used for cryptocurrency needs or more generalized encryption. Turnkey securely holds all private key materials for you, but only you can access them.\n\nThe Private Key ID or any derived address can be used to create digital signatures. See [Signers](./api#tag/Signers) for more information"
"description": "Private Keys are cryptographic public / private key pairs that can be used for cryptocurrency needs or more generalized encryption. Turnkey securely holds all private key materials for you, but only you can access them.\n\nThe Private Key ID or any derived address can be used to create digital signatures. See [Signing](./api#tag/Signing) for more information"
},
{
"name": "Private Key Tags",
Expand Down Expand Up @@ -1206,7 +1206,7 @@
}
}
],
"tags": ["Signers"]
"tags": ["Signing"]
}
},
"/public/v1/submit/sign_transaction": {
Expand All @@ -1232,7 +1232,7 @@
}
}
],
"tags": ["Signers"]
"tags": ["Signing"]
}
},
"/public/v1/submit/update_policy": {
Expand Down Expand Up @@ -2713,8 +2713,8 @@
"description": "A list of wallet Accounts."
},
"mnemonicLength": {
"type": "string",
"format": "uint64",
"type": "integer",
"format": "int32",
"description": "Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24."
}
},
Expand Down Expand Up @@ -5557,8 +5557,8 @@
"description": "A list of wallet Accounts."
},
"mnemonicLength": {
"type": "string",
"format": "uint64",
"type": "integer",
"format": "int32",
"description": "Length of mnemonic to generate the Wallet seed. Defaults to 12. Accepted values: 12, 15, 18, 21, 24."
}
},
Expand Down Expand Up @@ -5677,8 +5677,8 @@
"tags": ["Organizations", "Invitations", "Policies", "Features"]
},
{
"name": "PRIVATE KEYS",
"tags": ["Wallets", "Signers", "Private Keys", "Private Key Tags"]
"name": "WALLETS AND PRIVATE KEYS",
"tags": ["Wallets", "Signing", "Private Keys", "Private Key Tags"]
},
{
"name": "USERS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/tkhq/go-sdk"
"github.com/tkhq/go-sdk/pkg/api/client/signers"
"github.com/tkhq/go-sdk/pkg/api/client/signing"
"github.com/tkhq/go-sdk/pkg/api/models"
)

Expand All @@ -25,7 +25,7 @@ func main() {
var privateKeyID string
var unsignedTransaction string // no 0x prefix necessary

pkParams := signers.NewSignTransactionParams().WithBody(&models.SignTransactionRequest{
pkParams := signing.NewSignTransactionParams().WithBody(&models.SignTransactionRequest{
OrganizationID: client.DefaultOrganization(),
TimestampMs: &timestampString,
Parameters: &models.SignTransactionIntentV2{
Expand All @@ -36,7 +36,7 @@ func main() {
Type: (*string)(models.ActivityTypeSignTransaction.Pointer()),
})

signResp, err := client.V0().Signers.SignTransaction(pkParams, client.Authenticator)
signResp, err := client.V0().Signing.SignTransaction(pkParams, client.Authenticator)
if err != nil {
log.Fatal("failed to make PrivateKeys SignTransaction request:", err)
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions pkg/api/client/turnkey_api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/api/models/create_wallet_intent.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/api/models/wallet_params.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f49bf8f

Please sign in to comment.