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

Implement CompiledTransaction object #45

Closed
bobbinth opened this issue Mar 2, 2023 · 0 comments · Fixed by #47
Closed

Implement CompiledTransaction object #45

bobbinth opened this issue Mar 2, 2023 · 0 comments · Fixed by #47
Assignees

Comments

@bobbinth
Copy link
Contributor

bobbinth commented Mar 2, 2023

A CompiledTransaction object is the result of compiling a set of note scripts in the context of an account. This process would be performed by a TransactionCompiler and would look as follows:

image

Compiled transaction consists of the following components:

Component Type Description
Account ID 1 element Identifier of the account involved in the transaction.
Consumed notes Vec<Note> A list of objects for all notes consumed in the transaction (if any).
Tx script root Digest MAST root of the tx script for the transaction (if any).
Tx program Program An executable program describing the transaction.

Notice that CompiledTransaction object does not actually contain any of the account data (except for Account ID). Thus, we assume that it will be passed to a component which can look up all required account data somewhere before processing the transaction further.

@frisitano frisitano self-assigned this Mar 2, 2023
daedlock pushed a commit to keomprotocol/miden-base that referenced this issue Feb 8, 2024
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

Successfully merging a pull request may close this issue.

2 participants