-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modular Wallet Types #834
base: v2.2
Are you sure you want to change the base?
Modular Wallet Types #834
Conversation
|
||
// type WalletType = | ||
// | (typeof ACCOUNT_PLUGINS)[number]["type"] | ||
// | `smart:${(typeof ACCOUNT_PLUGINS)[number]["type"]}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup
const awsKmsArn = res.KeyMetadata.Arn; | ||
const { keyId } = splitAwsKmsArn(awsKmsArn); | ||
|
||
const account = await getAwsKmsAccount({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one day you should extract this into the sdk :D
type AwsKmsCredential = z.infer<typeof awsKmsCredentialSchema>; | ||
|
||
// AWS KMS Plugin Definition | ||
export const awsKmsPlugin = defineAccountPlugin({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was expecting to see a plugin for GCP and one for private key as well? is it just not implemented yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, need to extract the exiting code into this plugin format. Will also be adding one for circle
PR-Codex overview
This PR focuses on restructuring the wallet management system, particularly enhancing AWS KMS and GCP integration, improving encryption methods, and introducing credential handling. It also includes schema updates for better validation and organization of wallet-related configurations.
Detailed summary
src/server/utils/wallets/aws-kms-arn.ts
.getAwsKmsAccount
.decrypt
todecryptWithCustomPassword
insrc/shared/utils/crypto.ts
.decrypt
function that uses the custom password.LOGGER_SERVICES
constant insrc/shared/utils/logger.ts
.evmAddressSchema
insrc/shared/schemas/address.ts
for EVM address validation.WalletCredentials
model to manage wallet credentials.updateConfiguration
to encrypt AWS and GCP credentials.