0xMiden / 0xMiden/protocol

Reversable account deltas

Abierto
#1,499 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
132
Forks
167
Merge medio
1 d 23 h
PR fusionados (30 d)
110

Descripción

### Feature description

Is it possible to apply an account delta in reverse?

### Why is this feature needed?

I want to rollback a transaction and therefore want to reverse its account delta.

The current implementation is to keep the original `Account` + a series of uncommitted account deltas to apply on top of it. I would much rather have the latest `Account` state and be able to apply deltas in reverse since rolling back a transaction is less likely to occur.

Something to account for is that rolling back a transaction could result in an empty/deleted account and I'm unsure if this is even possible know from just the delta reversal?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.