Developers
git clone <pallas repository>
cd pallas/reference/pq-tx
npm ci
npm test # 39 tests, incl. 40 NIST ACVP vectorsThe node is in development. The commands below show the planned interface.
# Planned interface. Binaries are not released yet.
pallas init --network testnet --datadir ~/.pallas
pallas --network testnet --http --http.addr 127.0.0.1 --http.api eth,net,web3Pallas nodes serve the standard eth_, net_ and web3_ namespaces. Transactions expose publicKey and signature instead of v, r, s.
curl -s -X POST "$PALLAS_TESTNET_RPC" \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["latest",false]}'Compile with standard tooling. Deploying needs a Pallas signer, because Foundry and Hardhat only produce ECDSA transactions.
# Compiling works with standard tooling today:
forge build
# Deploying needs a Pallas signer, because Foundry and Hardhat only
# produce ECDSA transactions. Planned: the SDK and a Foundry/Hardhat plugin.Prefer msg.sender checks to off-chain ECDSA signatures. Contracts that rely on ecrecover (permits, ECDSA multisigs) are not protected by Pallas’s post-quantum transaction signatures.
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.28;
// Standard Solidity works unchanged. msg.sender is the 20-byte Pallas
// address of the ML-DSA-65-authenticated sender.
contract Guestbook {
event Signed(address indexed who, string note);
function sign(string calldata note) external {
emit Signed(msg.sender, note);
}
}@pallas/sdk is planned for the public testnet. This is its intended shape.
import { createClient, deriveAccount } from '@pallas/sdk';
const client = createClient({ rpcUrl: process.env.PALLAS_TESTNET_RPC });
const account = deriveAccount(mnemonic, 0); // ML-DSA-65 key, derived locally
const hash = await client.sendTransaction({
account,
to: '0x00000000000000000000000000000000000a0e01',
value: 1_500_000_000_000_000_000n, // 1.5 tPAL
});
const receipt = await client.waitForReceipt(hash);A type-0x50 transaction is signed with ML-DSA-65 over its full encoding, with the context string PALLAS-TX-v1.
import { ml_dsa65 } from '@noble/post-quantum/ml-dsa.js';
// signingMessage = 0x50 || rlp([chainId, nonce, maxPriorityFeePerGas, maxFeePerGas,
// gasLimit, to, value, data, accessList, from, scheme, publicKey])
const context = new TextEncoder().encode('PALLAS-TX-v1');
const signature = ml_dsa65.sign(signingMessage, secretKey, { context }); // 3,309 bytes
const ok = ml_dsa65.verify(signature, signingMessage, publicKey, { context });Generate a key, sign a type-0x50 transaction and try to break it. Everything runs in your browser. On load, the playground reproduces the published pqtx-v1 test vector to show it runs the protocol’s rules.
Transfer of 1.5 tPAL to 0x…0a0e01, nonce 0. Nothing is broadcast.
Sign a transaction, then try to break it.