Signed-payload signer
A signer whose P… strkey carries a payload. wallet-backend halted on it, then stored it as 33 bytes; this entry keeps it whole.
The shape
CAP-0040 added a signer type that carries a payload: the strkey starts with P and is longer than a G address (up to 165 characters for a 64-byte payload). Readers that assume every signer is a 32-byte ed25519 key truncate it or fail. wallet-backend halted ingestion on testnet ledger 4437357 (#729) and stored the signer as 33 bytes, losing the payload (#716).
Variants
One variant is mined: the real testnet ledger where wallet-backend halted. Two are generated by a standalone stellar-core v30.0.0, on the mainnet and testnet passphrases. The generated ones push the edges: a 64-byte payload (the longest allowed, a 165-character strkey), and a 29-byte payload that needs XDR padding.
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,904 B | c3bc44b52a51… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,904 B | 9a22f13104ed… |
p28-testnet-mined | P28 | testnet passphrase | mined from history | 58,256 B | 582e694b96bf… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The transaction succeeded: core applied the signed-payload signer. | success | snapshotcorewalker |
| The mined testnet signer is the P… strkey from the wallet-backend#729 ledger, kept whole. p28-testnet-mined | PBCK2RYYLIYOSHBEL2FQLAVRSHRH3GP3ID476SGKBV7BEZHMQ6NSAAAAAAB55LN6AANMS | snapshotcorewalker |
| After apply, the mined account's only signer is that full P… key (an indexer storing 33 bytes has lost the payload). p28-testnet-mined | some change where 2 fields match | snapshotcorewalker |
| Generated: the first signer carries a 64-byte payload (sha256('xdrproof:payload:a') || sha256('xdrproof:payload:b')) for bob's key; its strkey is 165 characters. p30-mainnet-generated | PCDNGZ7NJFNBWBP7DXYQKJRBG2VAIR5DCCCLUDBZW5B3VGUFKDG5AAAAABAPLCG4TV4JZWAODQ2OPNXPBFSF7DB774MDE3MVLMKFQ7PHE5HQIOGTBILGV7NGJBMP3A7I5NBRXG5PJFEDEZBYWZW72BQXUSY4R5RC7YFXC | constructionsnapshotcorewalker |
| Generated: the first signer carries a 64-byte payload (sha256('xdrproof:payload:a') || sha256('xdrproof:payload:b')) for bob's key; its strkey is 165 characters. p30-testnet-generated | PCDNGZ7NJFNBWBP7DXYQKJRBG2VAIR5DCCCLUDBZW5B3VGUFKDG5AAAAABAPLCG4TV4JZWAODQ2OPNXPBFSF7DB774MDE3MVLMKFQ7PHE5HQIOGTBILGV7NGJBMP3A7I5NBRXG5PJFEDEZBYWZW72BQXUSY4R5RC7YFXC | constructionsnapshotcorewalker |
| Generated: the second signer carries a 29-byte payload, a length that needs XDR padding (first 29 bytes of sha256('xdrproof:payload:c')). p30-mainnet-generated | PCDNGZ7NJFNBWBP7DXYQKJRBG2VAIR5DCCCLUDBZW5B3VGUFKDG5AAAAAAOS2UR5JPZSJKJ7MTYM2KD5A35N4M6CQAT7BRSYUBOTHZFDOMAAAABQCM | constructionsnapshotcorewalker |
| Generated: the second signer carries a 29-byte payload, a length that needs XDR padding (first 29 bytes of sha256('xdrproof:payload:c')). p30-testnet-generated | PCDNGZ7NJFNBWBP7DXYQKJRBG2VAIR5DCCCLUDBZW5B3VGUFKDG5AAAAAAOS2UR5JPZSJKJ7MTYM2KD5A35N4M6CQAT7BRSYUBOTHZFDOMAAAABQCM | constructionsnapshotcorewalker |
| Generated: after both operations, alice's account holds both signed-payload signers. p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| Generated: after both operations, alice's account holds both signed-payload signers. p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
What it reproduces
wallet-backend#729wallet-backend#716make replay feeds testnet ledgers 4437356–4437359 to three real wallet-backend builds through a mock stellar-rpc:
| wallet-backend build | Expected verdict |
|---|---|
79ea2acd, "upgrade to protocol 28" (#715) | stores the signer as 33 bytes, losing the payload (#716) |
6e5a5910, "reduce muxed addresses to their base account" (#693) | halts at ledger 4437357 |
2c873353, "handle CAP-40 signed-payload signers" (#729) | stores the full 41-byte key |
The verdict is read from state: the ingest cursor and the stored signer's length. See Replay.
Check it yourself
make verify # schema, hashes, byte-for-byte round trip, every fact above
make replay # the wallet-backend runs (Docker, about 10 minutes cold)A signed-payload signer with a 1-byte payload
The shortest payload, 1 byte (0x2a), padded with 3 zero bytes in XDR; its P… strkey is 69 characters.
An account merged into a muxed destination
ACCOUNT_MERGE whose destination is M(alice, 42): carol's entry is removed and its balance goes to alice's base account.