Skip to content

Conversation

@jonaprieto
Copy link
Collaborator

@jonaprieto jonaprieto commented Jan 2, 2025

Added the following types; note that many of them need to be reviewed; this is a proposal
But it is in heavy development.

This commit introduces a new documentation file for the `State` type in the Juvix programming language. The file includes detailed descriptions of the type's structure, its components, and their respective arguments. Additionally, it provides auxiliary Juvix code for deriving equality and order instances for the `State` type. This enhancement improves the clarity and accessibility of the documentation for developers working with state management in Juvix.
This commit updates the documentation for the `PublicKey`, `PrivateKey`, `SecretKey`, and `Digest` types in Juvix. It introduces auxiliary code snippets for deriving equality and order instances for each type.
This commit modifies the import statement for the equality trait in the `prelude.juvix.md` file, changing it to include both `Eq` and `mkEq`.
…y documentation

This commit introduces new documentation for nullifiers and nullifier keys in Juvix. The new files provide detailed descriptions of nullifier properties, their purpose in preventing double-spending, and the structure of nullifier keys.
…x Markdown format

This commit introduces a new documentation file for the `Transaction` type in Juvix, detailing its structure, arguments, and auxiliary code for deriving equality and order instances. Additionally, it updates the existing documentation for the `Action` type by correcting a typo and enhancing the auxiliary code section.
…rce, and Transaction types in Juvix Markdown format.
This commit introduces a new documentation file detailing the `CommitmentTree` and its associated types, including `MTree`, `CTree`, and `Path`.
- Added type synonyms for `LogicHash`, `LabelHash`, `ValueHash`, `Nonce`.
- Updated `Resource` type definition to include `nullifierKey` and `randSeed`.
- Clarified the purpose and properties of resources, emphasizing uniqueness, fungibility, nullification, and ephemerality.
- Introduced tags for better categorization: resource-logic-proof, resource-machine, security, proof.
@github-actions
Copy link

github-actions bot commented Jan 2, 2025

Success! Preview available at https://specs.anoma.net/pr-305/.

…roperties, and resource associations. Clarify the relationship between actions and resources, including creation and consumption processes. Update type definitions for `Action` to improve clarity and consistency. Add structured sections for better readability.
…, auxiliary Juvix code examples for instances, and a new `makeCommitment` function. This update clarifies the role of commitments in proving resource existence without revealing values, and improves overall structure and readability.
- Updated `Commitment` type to use `committed` and `commitment` for clarity.
- Enhanced `CommitmentTree` documentation with a detailed purpose section, defining `CommitmentTreeOps` and its operations.
- Introduced `CTree` as a specialized `MTree` for storing commitments, including new functions for hashing and navigating the tree.
- Improved overall structure and readability of the documentation.
@jonaprieto jonaprieto changed the base branch from main to topic-transaction-function January 8, 2025 20:57
@jonaprieto jonaprieto added this to the v0.1.4 milestone Jan 16, 2025
@AHartNtkn
Copy link
Contributor

Going through what's here, I think there's enough to be worth saving rather than scrapping. At the same time, it's clearly unfinished, with some problems that can't be fixed with a simple code adjustment. It's up to you if you want to merge it with the plan of eventually making a new PR to work on it further. If you want to make it a full PR and have me review it, I'll approve, but it will be purely bureaucratic.

jonaprieto and others added 4 commits January 17, 2025 09:42
… prelude import. This update clarifies the basic types used in the system and improves the organization of the resource machine (RM) section.
@jonaprieto jonaprieto changed the title Add types for RM specs Add most of the types for RM specs Jan 17, 2025
…. Update resource documentation to include the new prelude import and remove outdated type synonyms for clarity and organization.
@jonaprieto jonaprieto marked this pull request as ready for review January 17, 2025 15:02
@jonaprieto
Copy link
Collaborator Author

Let's merge this and continue from these changes.

@jonaprieto jonaprieto merged commit fda171f into topic-transaction-function Jan 17, 2025
2 of 4 checks passed
@jonaprieto jonaprieto deleted the jonathan/add-rm-types branch January 17, 2025 15:03
github-actions bot pushed a commit that referenced this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants