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

chore: introduce @trezor/metadata package #16110

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/features/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Data is stored in encrypted form using aes-256-gcm cipher.
Master key for encryption is generated by users Trezor with constants defined in
[suite/src/actions/suite/constants/metadataConstants.ts](https://github.com/trezor/trezor-suite/blob/develop/packages/suite/src/actions/suite/constants/metadataConstants.ts)
Files encryption-decryption logic is located in
[suite/src/utils/suite/metadata.ts](https://github.com/trezor/trezor-suite/blob/develop/packages/suite/src/utils/suite/metadata.ts)
[suite/@trezor/metadata/src/utils.ts](https://github.com/trezor/trezor-suite/blob/develop/packages/suite/@trezor/metadata/src/utils.ts)

## Where data lives in the App

Expand Down
20 changes: 20 additions & 0 deletions packages/metadata/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@trezor/metadata",
"version": "1.0.0",
"private": true,
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "src/index",
"scripts": {
"depcheck": "yarn g:depcheck",
"type-check": "yarn g:tsc --build"
},
"dependencies": {
"@trezor/env-utils": "workspace:^",
"@trezor/utils": "workspace:^",
"dropbox": "^10.34.0"
},
"devDependencies": {
"@trezor/suite-desktop-api": "workspace:*"
}
}
Loading
Loading