Skip to content

feat(rs-sdk): simple address signer - #2881

Merged
lklimek merged 7 commits into
feat/singleUseKeys-sdkfrom
feat/simpleAddressSigner
Dec 8, 2025
Merged

lklimek merged 7 commits into
feat/singleUseKeys-sdkfrom
feat/simpleAddressSigner

Conversation

@pauldelucia

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

This merges feat/singleUseKeys into feat/singleUseKeys-sdk and adds a SimpleAddressSigner (packages/rs-sdk/src/platform/transition/put_identity.rs). Only that file was modified except for the merge commit.

What was done?

How Has This Been Tested?

DET

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@coderabbitai

coderabbitai Bot commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/simpleAddressSigner

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

✅ gRPC Query Coverage Report

================================================================================
gRPC Query Coverage Report - NEW QUERIES ONLY
================================================================================

Total queries in proto: 49
Previously known queries: 47
New queries found: 2

================================================================================

New Query Implementation Status:
--------------------------------------------------------------------------------
✓ getAddressInfo                                /home/runner/work/platform/platform/packages/rs-sdk/src/platform/query.rs
✓ getAddressesInfos                             /home/runner/work/platform/platform/packages/rs-sdk/src/platform/fetch_many.rs

================================================================================
Summary:
--------------------------------------------------------------------------------
New queries implemented: 2 (100.0%)
New queries missing: 0 (0.0%)

Total known queries: 49
  - Implemented: 46
  - Not implemented: 2
  - Excluded: 1

Not implemented queries:
  - getConsensusParams
  - getTokenPreProgrammedDistributions

@github-actions

github-actions Bot commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

✅ DashSDKFFI.xcframework built for this PR.

SwiftPM (host the zip at a stable URL, then use):

.binaryTarget(
  name: "DashSDKFFI",
  url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
  checksum: "accd8a07d3abe6b945c002c2d1221aea6cee719592dc095b2697e0f7ce73f0e1"
)

Xcode manual integration:

  • Download 'DashSDKFFI.xcframework' artifact from the run link above.
  • Drag it into your app target (Frameworks, Libraries & Embedded Content) and set Embed & Sign.
  • If using the Swift wrapper package, point its binaryTarget to the xcframework location or add the package and place the xcframework at the expected path.

@pauldelucia pauldelucia closed this Dec 8, 2025
@lklimek lklimek reopened this Dec 8, 2025
Self::wait_for_response(sdk, state_transition, settings).await
/// A simple signer for platform addresses that maps addresses to their private keys
#[derive(Debug)]
struct SimpleAddressSigner {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would move it to mocks, we don't want users to use this approach in production code. Privkeys should be stored securely and never be available as Vec.


impl SimpleAddressSigner {
/// Create a new address signer from addresses and their corresponding private keys
fn new(addresses: &[PlatformAddress], private_keys: &[Vec<u8>]) -> Result<Self, ProtocolError> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

take private keys as owned, and Zeroize them after use.

@lklimek
lklimek merged commit a0565fa into feat/singleUseKeys-sdk Dec 8, 2025
@lklimek
lklimek deleted the feat/simpleAddressSigner branch December 8, 2025 12:18
@thephez thephez added this to the v3.0 milestone Dec 22, 2025
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