Repository navigation
feat(rs-sdk): simple address signer - #2881
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
✅ gRPC Query Coverage Report |
|
✅ 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:
|
| 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 { |
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
take private keys as owned, and Zeroize them after use.
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:
For repository code-owners and collaborators only