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

Using update proposals #357

Closed
emilmarstrander opened this issue Aug 6, 2023 · 1 comment
Closed

Using update proposals #357

emilmarstrander opened this issue Aug 6, 2023 · 1 comment

Comments

@emilmarstrander
Copy link

Hi,

I have been working with the mlspp build from December 2022. I then used the below code to update a node's key material. However, when I tried this on the build from 6.8.2023, it produces the following error: Invalid proposal list Is there another way of doing this in the newer build?

proposal = session.update();
session.handle(proposal);
session.commit();

@bifurcation
Copy link
Contributor

This operation is illegal because it's a self-update. If you want a node to update its own key, you can just call session.commit(), since committing produces a new leaf for the committer.

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

No branches or pull requests

2 participants