Add copy media backup id to backup playground.

This commit is contained in:
Cody Henthorne
2025-05-22 09:36:11 -04:00
parent ea0b8fc594
commit 52c7a9a214
2 changed files with 19 additions and 0 deletions

View File

@@ -51,6 +51,15 @@ class MediaRootBackupKey(override val value: ByteArray) : BackupKey {
)
}
/**
* Identifies a the location of a user's backup.
*/
fun deriveBackupId(aci: ACI): BackupId {
return BackupId(
LibSignalBackupKey(value).deriveBackupId(aci.libSignalAci)
)
}
class MediaKeyMaterial(
val id: MediaId,
val macKey: ByteArray,