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

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.03,012 B400cb8b6318c…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.03,012 B308556b407ce…

What a correct reader returns

A correct reader findsValueBacked by
The extra signer is eve's key with the 32-byte payload sha256("xdrproof:extra-signer"), a P… strkey.PBS6O4QWCGUCQNWQ4JC6CYQVQQYB5DYHHQ7XO5Q4IM5VM46WKYMQYAAAAAQIIVIEPJYVX7I3RYM55BVCG2UM3H2PHQFR24O3GJZMYLM4ZPOASZUSDEconstructionsnapshotcorewalker
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 2constructionsnapshot
The payment succeeds.successsnapshotcorewalker

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 walker

Entry id preconditions.v2-extra-signer · compiled from catalog/preconditions.v2-extra-signer.json · entry.json

On this page