Transactions
Pallas has exactly one transaction type: 0x50, an EIP-2718 typed transaction. Legacy, EIP-2930, EIP-1559, EIP-4844 and EIP-7702 transactions are all invalid.
Encoding
0x50 || rlp([13 fields])
| # | Field | Rule |
|---|---|---|
| 0 | chainId |
Must equal the network's chain ID |
| 1 | nonce |
At most 2^64 − 2 |
| 2 | maxPriorityFeePerGas |
Not greater than maxFeePerGas |
| 3 | maxFeePerGas |
|
| 4 | gasLimit |
|
| 5 | to |
Empty for contract creation, otherwise 20 bytes |
| 6 | value |
|
| 7 | data |
|
| 8 | accessList |
EIP-2930 format |
| 9 | from |
20 bytes. Explicit because a rotated key no longer derives the address. |
| 10 | scheme |
1 = ML-DSA-65 |
| 11 | publicKey |
1,952 bytes |
| 12 | signature |
3,309 bytes |
Integers use the shortest big-endian encoding. A leading zero byte makes the transaction invalid. Decoders re-encode what they parsed and require byte-for-byte equality, so each transaction has exactly one valid encoding.
Signing and hashing
signingMessage = 0x50 || rlp(fields 0..11)
signature = ML-DSA-65.Sign(secretKey, signingMessage, context = "PALLAS-TX-v1")
txHash = keccak256(0x50 || rlp(fields 0..12))
Validation
The same checks run when a transaction is decoded, admitted to the transaction pool, executed in a block and imported from a peer:
| Error | Cause |
|---|---|
ERR_TX_TYPE |
First byte is not 0x50 |
ERR_DECODE |
Malformed or non-canonical encoding |
ERR_CHAIN_ID |
Signed for another network |
ERR_SCHEME |
Unsupported signature scheme |
ERR_PUBLIC_KEY / ERR_SIGNATURE_SIZE |
Wrong key or signature length |
ERR_SENDER_BINDING |
Key does not belong to from |
ERR_SIGNATURE |
Signature does not verify |
Gas (provisional)
intrinsicGas = 21000 + calldata + accessList + 4 * (1952 + 3309) + 3000
That puts a plain transfer at about 45,044 gas. Both constants are placeholders until block-propagation benchmarks are complete.
Test vectors
The reference implementation publishes deterministic vectors (reference/pq-tx/vectors/pqtx-v1.json). Every implementation, including the node, must reproduce them. The signing playground on the Developers page checks itself against the first vector when it loads.