Function addressWithSignersFromRawPQSigner

  • Build the full set of signers for a post-quantum key from a function that signs raw bytes with it.

    Parameters

    • signingKey: PQSigningKey

      The scheme, public key and raw signing function to build the signers from

    • Optional sendingAddress: Address

      The address transactions are sent from. Defaults to the derived PQ address; supply it when the PQ key is the auth address of a rekeyed account, in which case the produced transactions carry the derived address in their sgnr field.

    Returns AddressWithTransactionSigner & AddressWithDelegatedLsigSigner & AddressWithEmptyTransactionSigner

    An address bundled with transaction, empty transaction and delegated LogicSig signers

    Remarks

    The account address is derived from the scheme and public key via addressFromPQKey, so it does not have to be supplied. Every signature produced carries the scheme, canonical salt and public key alongside the signature bytes, which is what lets the network recover the authorizing address from the signature alone.

    PQ schemes cannot participate in multisig, so delegatedLsigSigner throws if given an msig argument, and no mxBytesSigner or programDataSigner is returned — signing arbitrary bytes and program data are ed25519-only operations.

    Throws

    If pqScheme is not exactly 2 bytes

Generated using TypeDoc