#4 Make `BlockMetaSecrets` encryption lazy.

Aberta
aberta %!s(int64=2) %!d(string=hai) anos por mcarr · 0 comentarios

Manually implement the Serialize trait for BlockMetaBody so that the secrets field can be lazily updated upon serialization if the secrets_struct field has been modified. In order to detect modifications, a new field with the serde(skip) attribute needs to be added to BlockMetaBody to store the hash of BlockMetaSecrets that was computed just after decryption.

Manually implement the Serialize trait for BlockMetaBody so that the secrets field can be lazily updated upon serialization if the secrets_struct field has been modified. In order to detect modifications, a new field with the serde(skip) attribute needs to be added to BlockMetaBody to store the hash of BlockMetaSecrets that was computed just after decryption.
Accede para unirte á conversa.
Sen fito
Sen asignado
1 participantes
Cargando...
Cancelar
Gardar
Aínda non existe contido.