SPIKE: CAP-71 SDK support — expose delegate_account_auth#1878
Draft
sisuresh wants to merge 1 commit into
Draft
Conversation
…unt_auth
- Pin soroban-env-{common,guest,host} and stellar-xdr to the CAP-71 commit
(7fb0a840 / rs-stellar-xdr a749b69b, features=["cap_0071"]); drop the
'curr' feature now that rs-stellar-xdr uses a per-cap-feature layout.
- Replace 'use stellar_xdr::curr ...' aliases with crate-root imports.
- Add Address::delegate_account_auth wrapping the new CAP-71-01 host fn
(env.json: address.a). Custom-account __check_auth can now call
delegate.delegate_account_auth() to route auth to a delegated signer.
Used to e2e-test CAP-71-01 (delegation) end-to-end through stellar-rpc and
horizon on a Quickstart Protocol 27 build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SPIKE used to e2e-test CAP-71 (Auth delegation) end-to-end against a Quickstart Protocol 27 build (with stellar-core PR #5209 = CAP-83 + CAP-71 enabled via `--enable-next-protocol-version-unsafe-for-production`).
What this changes
How it was used
A 13-line custom-account contract was built against this SDK and deployed to a Quickstart p27 node; a `SOROBAN_CREDENTIALS_ADDRESS_WITH_DELEGATES` auth entry (with a single `SorobanDelegateSignature`) was submitted; the tx returned `SUCCESS` from RPC and was ingested by Horizon without error. (Companion testing on `go-stellar-sdk`, `stellar-rpc`, and `stellar-horizon` is tracked in those repos' SPIKE PRs.)
Notes for a real PR