Skip to content

Conversation

@Roee-87
Copy link
Collaborator

@Roee-87 Roee-87 commented Nov 7, 2025

Motivation

The Leo devnode tool enables developers to rapidly iterate on their Aleo programs without having to wait for proof generation when generating execution transactions. Many developers run CI tests in JS, so having support for generating proof-less execution transactions will enable developers to use the SDK to make transactions against the devnode server.

Test Plan

Tests will require Leo devnode to be installed.

  1. Install Leo using the following commit: 5baf94e
  2. Initialize a Devnode server using the following command:
leo devnode start --private-key $PRIVATE_KEY --verbosity 2

This will initialize a development server at http://localhost:3030.
3. Navigate to create-leo-app/template-devnode-js.
Run yarn dev to run the example.

Related PRs

Leo devnode PR:
ProvableHQ/leo#28982

@Roee-87 Roee-87 added enhancement New feature or request rust Pull requests that update Rust code javascript Pull requests that update Javascript code labels Nov 7, 2025
"name": "@provablehq/wasm",
"version": "0.9.11",

"type": "module",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to delete before merging.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually needs to stay here :)

@Roee-87 Roee-87 marked this pull request as ready for review November 10, 2025 23:23
Copy link
Member

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good and we should get this in, however it needs some changes.

  1. We absolutely need to remove the dev features as it'll make the SDK non-functional in production
  2. We should have different ProgramManager methods for dev node on second thought so that people know that these methods exist and we don't add any error to our existing methods.

"name": "@provablehq/wasm",
"version": "0.9.11",

"type": "module",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually needs to stay here :)

Signed-off-by: Roy Rotstein <[email protected]>
Copy link
Member

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits below, can we also make a create-leo-app example that shows how to deploy and execute a program against a devnode with a Readme.md that shows how to set it up?

*
* @example
* /// Import the mainnet version of the sdk.
* import { AleoKeyProvider, ProgramManager, NetworkRecordProvider } from "@provablehq/sdk/mainnet.js";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* import { AleoKeyProvider, ProgramManager, NetworkRecordProvider } from "@provablehq/sdk/mainnet.js";
* import { AleoKeyProvider, getOrInitConsensusVersionTestHeights, ProgramManager, NetworkRecordProvider } from "@provablehq/sdk/mainnet.js";

Copy link
Member

@iamalwaysuncomfortable iamalwaysuncomfortable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should refactor these methods to use some common routines to reduce code duplication as this will become harder to maintain in the future, but this is approved for now in order to provide the functionality to outside users.

@Roee-87 Roee-87 merged commit 8801114 into mainnet Nov 25, 2025
14 checks passed
@Roee-87 Roee-87 deleted the rr-add-devnode-support branch November 25, 2025 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update Javascript code rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants