Skip to content
Minerva. Post-quantum, proof of work.

Documentation · Build

@minerva/pq-native-tx

network/packages/pq-native-tx/README.md · commit e561109 · 2026-10-23

Minerva PQ-native transaction helpers for developer tools, wallets, and backend services.

import {
  generateMLDSA65KeyPair,
  deriveMinervaPQAccountAddress,
  signMinervaPQTxV1,
} from "@minerva/pq-native-tx";

const keyPair = generateMLDSA65KeyPair();
const from = deriveMinervaPQAccountAddress(keyPair.publicKey);

const signed = signMinervaPQTxV1({
  chainId: 77138,
  nonce: 0n,
  gasTipCap: 1_000_000_000n,
  gasFeeCap: 2_000_000_000n,
  gas: 21_000n,
  to: "0x0000000000000000000000000000000000000000",
  value: 0n,
  data: "0x",
  pqPublicKey: keyPair.publicKey,
  pqPrivateKey: keyPair.privateKey,
});

console.log(from, signed.rawTransaction);

Keep private keys and PQ seeds outside source control. This package exposes primitives; applications remain responsible for key storage, user consent, transaction simulation, and policy checks.