0xMiden / 0xMiden/protocol

Define the FPI procedure attribute

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

Descripción

We need a way to mark account procedures intended for foreign procedure invocation (FPI).

Before adding an attribute, we should decide:

- Whether it marks only directly called FPI procedures or also procedures reached through callbacks and `dyncall`.
- Whether to use `@fpi` or `@account_procedure(fpi)`.
- Whether the assembler should require it to be used with `@account_procedure`.
- Whether it is documentation-only or affects validation and generated interfaces.
- Whether it could later be used by the kernel to restrict FPI calls.
- How it relates to expiration limits, since not every FPI procedure reads mutable state.

After defining these rules, we can add the attribute to the standards library.

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.