Skip to content
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

Encrypted PK wallet imports #183

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Encrypted PK wallet imports #183

merged 6 commits into from
Mar 26, 2024

Conversation

mattschoch
Copy link
Contributor

No description provided.

`eslint --no-error-on-unmatched-pattern ${filenames.join(' ')}; echo "ESLint completed with exit code $?"`,
`prettier --write ${filenames.join(' ')}`
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we already had it 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at the root; I had it per-project but it can also go at the root & it'll use the first one it finds, so this ensures it works on the whole monorepo

Copy link

linear bot commented Mar 25, 2024

NAR-1555 Vault Setup

  • Setup vault & tenants
  • Import key, unprotected
  • Sign transactions
  • Verify JWT, hardcoded key
    • Side task: generate the Client GNAP bound request (jwsd header)
  • Store Engine JWK w/ Tenant, verify JWT against that
  • Encrypt import
  • Import Seed Phrase & derive keys from that. Import root key?
  • Sign messages & typed data
  • Import Fireblocks credentials & proxy-calls to fireblocks

enum: ['enc', 'sig']
})
use?: 'enc' | 'sig' | undefined
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you feel lucky, you could try to use a Zod schema to generate the DTO https://www.npmjs.com/package/nestjs-zod

@mattschoch mattschoch force-pushed the feature/nar-1555-vault-setup branch from 8542bf4 to fe47c15 Compare March 26, 2024 18:19
@mattschoch mattschoch merged commit ada6ac7 into main Mar 26, 2024
1 check passed
@mattschoch mattschoch deleted the feature/nar-1555-vault-setup branch March 26, 2024 19:01
mattschoch added a commit that referenced this pull request Jun 19, 2024
* rsa private-to-public util

* POST /import/encryption-key generating RSA keypair for imports

* Adding encrypted privateKey import

* Adding lintstaged to root

* fix import from refactor/rebase

* Fixing test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants