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

WASM: rename randomized_public_key to randomized_public_key_pair #5730

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

andiflabs
Copy link
Contributor

Summary

This method returns a struct which also has a randomized_public_key method, which results in code like this:

let r = x.randomized_public_key();
let p = r.randomized_public_key();

... which is very ambiguous/confusing. With this PR, the above code becomes:

let r = x.randomized_public_key_pair();
let p = r.randomized_public_key();

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

This method returns a struct which also has a `randomized_public_key`
method, which results in code like this:

```rs
let r = x.randomized_public_key();
let p = r.randomized_public_key();
```

... which is very ambiguous/confusing. With this PR, the above code
becomes:

```rs
let r = x.randomized_public_key_pair();
let p = r.randomized_public_key();
```
@andiflabs andiflabs requested a review from a team as a code owner February 12, 2025 22:50
@andiflabs andiflabs enabled auto-merge (rebase) February 12, 2025 22:58
@andiflabs andiflabs merged commit fa1b8f7 into staging Feb 13, 2025
25 checks passed
@andiflabs andiflabs deleted the andrea/wasm-randomized-pub-key-pair branch February 13, 2025 03:35
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.

2 participants