Optional lmsigOptional msigOptional pqsigThe post-quantum delegation signature, if the delegating account is a
post-quantum account. At most one of sig, msig, lmsig and pqsig may
be set.
Optional sigStatic Readonly encodingAppends an additional subsignature to this LogicSig's existing multisig delegation.
The signer to append a subsignature from
The multisig preimage is taken from the lmsig already on this LogicSig,
so signWithSigner must have been called with an msig argument
first. The signer must hold a key belonging to that multisig.
A signature already collected from another member is never silently replaced: if the signer returns a different signature for a subsig that is already filled in, this throws instead.
If there is no multisig on this LogicSig, if the signer returns no signature, a signature for a key outside the multisig, or one that conflicts with a signature already collected
Private clearSecret key to sign with
Optional msig: MultisigMetadataMultisig account as {version, threshold, addrs}
Use signWithSigner instead
Creates signature (if no msig provided) or multi signature otherwise
Signs arbitrary data for use with the ed25519verify opcode from within
this LogicSig's program.
The signer to sign the data with
The data to sign
A promise which resolves to the raw signature over the data
This does not modify the LogicSig or delegate it; the LogicSig is only used for the address that domain-separates the signature. The program is responsible for verifying the returned signature against the signer's public key.
Use signWithSigner followed by .sig instead
Signs this LogicSig for delegation using the given signer.
The signer to delegate to
Optional msig: MultisigMetadataOptional multisig account the signer is a subsigner of
The address the signer signed as. When msig is omitted this is
the delegating account. When msig is given it is the individual
subsigner, not the multisig, so the delegating account is
multisigAddress(msig). Either way it is an authorizing address, which
is not necessarily the address a signer sends transactions from.
Re-signing an already-signed LogicSig is allowed, and replaces the previous
delegation signature. At most one of sig, msig, lmsig and pqsig may
be set, so any signature left over from an earlier call is cleared.
If the signer returns a signature of the wrong kind for the
requested delegation, or an lmsig whose version, threshold or public
keys do not match msig
Use signWithSigner followed by .sig instead
Verification key (derived from sender address or escrow address)
This function does not perform full verification and should not be fully trusted on its own. For example, it does not evaluate programs and does not have the ability to validate PQ signatures.
Performs signature verification
Static fromStatic fromGenerated using TypeDoc
LogicSig implementation
LogicSig cannot sign transactions in all cases. Instead, use LogicSigAccount as a safe, general purpose signing mechanism. Since LogicSig does not track the provided signature's public key, LogicSig cannot sign transactions when delegated to a non-multisig account and the sender is not the delegating account.