aboutsummaryrefslogtreecommitdiffstats
path: root/notes/new_apis.md
blob: 9a683ee466c89891f8960625c62c10b6d09d1924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

## HOWTO: clone drive from scratch

- create empty metadata register (on disk) from key (to ensure we can?)
- do discovery to find peers
- from first peer, discover data key
- create data register
- create drive from empty registers
- create synchronizer from all the above
- ... off it goes

## HOWTO: sync existing drive

- open the drive (on disk)
- create synchronizer from drive
- synchronizer does discovery of peers using metadata key (based on config)
- ... off it goes