02Sheet 02.03.107 · Entries
Preconditions v2 with ledger bounds, min sequence and an extra signed-payload signer
CAP-0021 preconditions: ledger bounds, a minimum source sequence, and an extra signer that is a signed-payload key (P…) whose signature must be on the transaction.
FIG. · Where it sits · inside LedgerCloseMetaCAP-0021 · CAP-0040 · H-C4 · H-A3
Preconditions.PRECOND_V2 with ledgerBounds, minSeqNum and extraSigners
signed-payload key as a CAP-0021 extra signer
The shape
CAP-0021 preconditions: ledger bounds, a minimum source sequence, and an extra signer that is a signed-payload key (P…) whose signature must be on the transaction.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 3,012 B | 400cb8b6318c… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 3,012 B | 308556b407ce… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The extra signer is eve's key with the 32-byte payload sha256("xdrproof:extra-signer"), a P… strkey. | PBS6O4QWCGUCQNWQ4JC6CYQVQQYB5DYHHQ7XO5Q4IM5VM46WKYMQYAAAAAQIIVIEPJYVX7I3RYM55BVCG2UM3H2PHQFR24O3GJZMYLM4ZPOASZUSDE | constructionsnapshotcorewalker |
| Ledger bounds are min 1, max 0 (no upper bound). | [object Object] | constructionsnapshotcorewalker |
| The transaction carries two signatures: bob's and the signed-payload signature for the extra signer. | length 2 | constructionsnapshot |
| The payment succeeds. | success | snapshotcorewalker |
Check it yourself
make verify # schema, hashes, the byte-for-byte round trip and every fact above
make oracle # the facts' values, re-read by stellar-core and the schema walkerEntry id preconditions.v2-extra-signer · compiled from catalog/preconditions.v2-extra-signer.json · entry.json