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

Wrap repository writes into our storage format file. #368

Open
poolpOrg opened this issue Feb 3, 2025 · 1 comment
Open

Wrap repository writes into our storage format file. #368

poolpOrg opened this issue Feb 3, 2025 · 1 comment

Comments

@poolpOrg
Copy link
Collaborator

poolpOrg commented Feb 3, 2025

/!\ immutable
/!\ non-rewindable

STORAGE FILE FORMAT:
    [uint32] Version
    [uint32] Data type
    [blob]
    [32 bytes = checksum(raw blob)]
    [32 bytes = checksum(full)]
    [64 bytes = signature(checksum(full)) || nul-bytes]


PACKFILE:
    [uint32] Version of packfile
    [uint32] Data type
    [blob] <----- serialized file
    [32 bytes = checksum(raw blob)]
    [32 bytes = checksum(full)]
    [64 bytes = signature(checksum(full)) || nul-bytes]


STATE:
    [uint32] Version of packfile
    [uint32] Data type
    [blob] <----- serialized state
    [32 bytes = checksum(raw blob)]
    [32 bytes = checksum(full)]
    [64 bytes = signature(checksum(full)) || nul-bytes]
@poolpOrg
Copy link
Collaborator Author

poolpOrg commented Feb 8, 2025

format has been reworked to:

/!\ immutable
/!\ non-rewindable

STORAGE FILE FORMAT:
    [uint32] Data type
    [uint32] Version
    [blob]
    [32 bytes = HMAC(all of the above), masterKey]

It is part of the #425 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant