mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 23:38:49 +00:00
Merge pull request #171 from PR0M3TH3AN/codex/update-docs-for-new-entries-layout
Update docs for entries schema
This commit is contained in:
18
README.md
18
README.md
@@ -118,6 +118,24 @@ seedpass export --file "~/seedpass_backup.json"
|
|||||||
seedpass import --file "~/seedpass_backup.json"
|
seedpass import --file "~/seedpass_backup.json"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Vault JSON Layout
|
||||||
|
|
||||||
|
The encrypted index file `seedpass_entries_db.json.enc` begins with `schema_version` `2` and stores an `entries` map keyed by entry numbers.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"schema_version": 2,
|
||||||
|
"entries": {
|
||||||
|
"0": {
|
||||||
|
"website": "example.com",
|
||||||
|
"length": 8,
|
||||||
|
"type": "password",
|
||||||
|
"notes": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@@ -33,6 +33,26 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Index File Format
|
||||||
|
|
||||||
|
All entries belonging to a seed profile are summarized in an encrypted file named `seedpass_entries_db.json.enc`. This index starts with `schema_version` `2` and contains an `entries` object keyed by entry numbers.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"schema_version": 2,
|
||||||
|
"entries": {
|
||||||
|
"0": {
|
||||||
|
"website": "example.com",
|
||||||
|
"length": 8,
|
||||||
|
"type": "password",
|
||||||
|
"notes": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## JSON Schema for Individual Entries
|
## JSON Schema for Individual Entries
|
||||||
|
|
||||||
Each SeedPass entry is stored as an individual JSON file, promoting isolated management and easy synchronization with Nostr. This structure supports diverse entry types (`kind`) and allows for future expansions.
|
Each SeedPass entry is stored as an individual JSON file, promoting isolated management and easy synchronization with Nostr. This structure supports diverse entry types (`kind`) and allows for future expansions.
|
||||||
@@ -444,9 +464,8 @@ All backups are organized based on fingerprints, ensuring that each seed's data
|
|||||||
│ │ ├── entry_1_v1.json
|
│ │ ├── entry_1_v1.json
|
||||||
│ │ └── ...
|
│ │ └── ...
|
||||||
│ ├── parent_seed.enc
|
│ ├── parent_seed.enc
|
||||||
│ ├── seedpass_passwords_checksum.txt
|
│ ├── seedpass_entries_db_checksum.txt
|
||||||
│ ├── seedpass_passwords_db_checksum.txt
|
│ └── seedpass_entries_db.json
|
||||||
│ └── seedpass_passwords_db.json
|
|
||||||
├── b5c6d7e8/
|
├── b5c6d7e8/
|
||||||
│ ├── entries/
|
│ ├── entries/
|
||||||
│ │ ├── entry_0.json
|
│ │ ├── entry_0.json
|
||||||
@@ -458,9 +477,8 @@ All backups are organized based on fingerprints, ensuring that each seed's data
|
|||||||
│ │ ├── entry_1_v1.json
|
│ │ ├── entry_1_v1.json
|
||||||
│ │ └── ...
|
│ │ └── ...
|
||||||
│ ├── parent_seed.enc
|
│ ├── parent_seed.enc
|
||||||
│ ├── seedpass_passwords_checksum.txt
|
│ ├── seedpass_entries_db_checksum.txt
|
||||||
│ ├── seedpass_passwords_db_checksum.txt
|
│ └── seedpass_entries_db.json
|
||||||
│ └── seedpass_passwords_db.json
|
|
||||||
└── ...
|
└── ...
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -498,9 +516,9 @@ seedpass rollback --fingerprint a1b2c3d4 --file entry_0_v1.json
|
|||||||
│ │ ├── entry_1_v1.json
|
│ │ ├── entry_1_v1.json
|
||||||
│ │ └── ...
|
│ │ └── ...
|
||||||
│ ├── parent_seed.enc
|
│ ├── parent_seed.enc
|
||||||
│ ├── seedpass_passwords_checksum.txt
|
│ ├── seedpass_script_checksum.txt
|
||||||
│ ├── seedpass_passwords_db_checksum.txt
|
│ ├── seedpass_entries_db_checksum.txt
|
||||||
│ └── seedpass_passwords_db.json
|
│ └── seedpass_entries_db.json
|
||||||
├── ...
|
├── ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user