mirror of
https://github.com/tompro/sattle.git
synced 2026-10-26 01:49:58 +00:00
feat(backup): preserve BIP-32 counters
This commit is contained in:
@@ -100,7 +100,10 @@ describe('publishBackup / fetchBackup', () => {
|
||||
it('publishes every part and fetches them back decrypted', async () => {
|
||||
const {transport} = createRecordingTransport()
|
||||
const parts = {
|
||||
notes: [{id: 'r1', iv: '00'.repeat(12), ciphertext: 'ab'.repeat(40)}],
|
||||
notes: {
|
||||
bearers: [{id: 'r1', iv: '00'.repeat(12), ciphertext: 'ab'.repeat(40)}],
|
||||
nextByHost: {'mint.example': 2},
|
||||
},
|
||||
mints: [{server: 'mint.example', mintPubkey: MINT_PUBKEY, addedAt: 1000, locked: false}],
|
||||
settings: {defaultMint: 'mint.example'},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user