02Sheet 02.03.003 · Entries
A pre-authorized-transaction signer (T…) and a hash-x signer (X…) are added
SET_OPTIONS adds a T… signer (the hash of a future transaction) and an X… signer (the sha256 of a secret).
FIG. · Where it sits · inside LedgerCloseMetapre-cap · H-A4
SetOptionsOp.signer as SIGNER_KEY_TYPE_PRE_AUTH_TX and SIGNER_KEY_TYPE_HASH_X
The shape
SET_OPTIONS adds a T… signer (the hash of a future transaction) and an X… signer (the sha256 of a secret).
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,404 B | 05d23419f22f… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,404 B | 48b1763ac150… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The second signer added is the hash-x key of sha256(preimage). | XBEWNSQKIIV7YZZTX5UDCAQ4Q2SMJVGM5LKQEYMHEGMZ7HAAP7EYJFQO | constructionsnapshotcorewalker |
| Operation 0 succeeds. | success | snapshotcorewalker |
| Operation 1 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 signer.preauth-and-hashx-added · compiled from catalog/signer.preauth-and-hashx-added.json · entry.json
A transaction whose only signature is a hash-x preimage
The signature is the preimage itself, not an ed25519 signature: readers that verify every signature as ed25519 reject it.
The pre-authorized transaction runs and core removes its signer, with no operation
When a transaction authorized by a T… signer applies, core removes that signer from the account in tx_changes_before.