https://github.com/sam-goodwin/cdk3
CDK Construct Library for web3.
https://github.com/sam-goodwin/cdk3
aws cdk cryptocurrency solidity web3
Last synced: 6 months ago
JSON representation
CDK Construct Library for web3.
- Host: GitHub
- URL: https://github.com/sam-goodwin/cdk3
- Owner: sam-goodwin
- License: apache-2.0
- Created: 2021-01-18T07:14:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T00:15:38.000Z (about 1 year ago)
- Last Synced: 2025-04-06T15:14:28.890Z (6 months ago)
- Topics: aws, cdk, cryptocurrency, solidity, web3
- Language: TypeScript
- Homepage:
- Size: 271 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdk3
Construct library for the continuous delivery of web3 dapps in AWS. Includes Constructs for CI/CD pipeline, secure storage of a Wallet's private keys, and web hosting on CloudFront for a cryptocurrency's brand.
### Wallet
The `Wallet` Construct generates an Ethereum compatible wallet and stores it as an encrypted keystore in an AWS Secret encrypted with an AWS KMS Key.
To create a new wallet:
```ts
const wallet = new cdk3.Wallet(this, "Wallet");
```To access the public key and address Resource Properties:
```ts
wallet.publicKey;
wallet.address;
```By default, the KMS Key and AWS Secret Resources have generated names. To help with organization, you can set the `walletName` so that those Resources are named according to the convention, `${walletName}-`. For example: `my-wallet-key` and `my-wallet-secret`.
```ts
new cdk3.Wallet(this, "Wallet", {
walletName: "my-wallet",
});
```To use an existing KMS Key to encrypt the AWS Secret (instead of generating a new one), set the `encryptionKey` property.
```ts
new cdk3.Wallet(this, "Wallet", {
encryptionKey: myKey,
});
```### Contract
Coming Soon: https://github.com/punchcard/cdk3/issues/3
### Web Hosting
Coming Soon: https://github.com/punchcard/cdk3/issues/5
### Decentralized Autonomous Organization (DAO)
Coming Soon: https://github.com/punchcard/cdk3/issues/4