# 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.

Latest version **0.0.4** (published 2021-11-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install cdk3
pnpm add cdk3
yarn add cdk3
bun add cdk3
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-11-13 |
| First published | 2021-01-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 101.9 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Sam Goodwin |
| Maintainers | sam-goodwin |
| Keywords | cdk |

## Links

- npm: https://www.npmjs.com/package/cdk3
- Repository: https://github.com/punchcard/cdk3
- Homepage: https://github.com/punchcard/cdk3#readme
- Issues: https://github.com/punchcard/cdk3/issues
- npm.io page: https://npm.io/package/cdk3

## Dependencies (4)

- [solc](https://npm.io/package/solc.md) ^0.8.10
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.1028.0
- [@types/aws-lambda](https://npm.io/package/@types/aws-lambda.md) ^8.10.85
- [ethereumjs-wallet](https://npm.io/package/ethereumjs-wallet.md) ^1.0.2

## Recent versions

- 0.0.4 (latest) — 2021-11-13
- 0.0.3 — 2021-11-13
- 0.0.2 — 2021-11-13
- 0.0.1 — 2021-11-12
- 0.0.0 — 2021-01-18

## 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}-<prefix>`. 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

---
_Source: https://npm.io/package/cdk3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
