a subxt config for quantus, lifted from quantus-cli, with offline signing #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #3
Scope
A
wallet-chain-substrateadapter crate (or module ofwallet-data; decide and note why) carrying a subxtConfigwhoseSignatureisDilithiumSignatureScheme, whose address isAccountId32, and whose extrinsic params includeReversibleTransactionExtensionandWormholeProofRecorderExtension(no signed bytes). Build the signing payload offline, hand it towallet_core::Signerwith the profile's context, and assemble the signed extrinsic with the signature-with-public-key wire form. Prefer subxt's dynamic API for calls and storage so a runtime upgrade does not require regenerating code; keep a metadata blob per profile only for tests.Acceptance
An extrinsic built and signed here for a
Balances::transfer_keep_aliveis accepted by a dev node (author_submitExtrinsic) and by Heisenberg. The same test with the context deliberately empty is rejected by the node.Depends on
Chain profiles; ML-DSA key schemes.