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

Fix makesecret api, remove getsharedsecret #5430

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

rustyrussell
Copy link
Contributor

Make makesecret API match datastore API, and remove getsharesecret.

Copy link
Collaborator

@adi2011 adi2011 left a comment

Choose a reason for hiding this comment

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

I think you'll also have to remove the getsharedsecret.schema.json file, apart from that LGTM...

@rustyrussell
Copy link
Contributor Author

I think you'll also have to remove the getsharedsecret.schema.json file, apart from that LGTM...

Good catch! Done.

…mmand.

And fix schema: it wasn't tested as there was no test-by-parameter-name.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This was introduced to allow creating a shared secret, but it's better to use
makesecret which creates unique secrets.  getsharedsecret being a generic ECDH
function allows the caller to initiate conversations as if it was us; this
is generally OK, since we don't allow untrusted API access, but the commando
plugin had to blacklist this for read-only runes explicitly.

Since @ZmnSCPxj never ended up using this after introducing it, simply
remove it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Removed: JSONRPC: `getsharedsecret` API: use `makesecret`
@rustyrussell
Copy link
Contributor Author

Removed file as suggested by @adi2011 and also removed duplicate makesecret test...

tests/test_misc.py Outdated Show resolved Hide resolved
@adi2011
Copy link
Collaborator

adi2011 commented Jul 15, 2022

ACK b658d29

@rustyrussell rustyrussell enabled auto-merge (rebase) July 15, 2022 06:54
Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

ACK b658d29

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK b658d29

@rustyrussell rustyrussell enabled auto-merge (rebase) July 15, 2022 12:47
@rustyrussell rustyrussell merged commit 9685c1a into ElementsProject:master Jul 15, 2022
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 this pull request may close these issues.

4 participants