generateAddressWithSigners
generateAddressWithSigners(
args):object
Defined in: packages/transact/src/signer.ts:48
Generate type-safe domain-separated signer callbacks given an ed25519 pubkey and a signing callback
Parameters
Section titled “Parameters”The arguments for generating signers
ed25519Pubkey
Section titled “ed25519Pubkey”Uint8Array
The ed25519 public key used for signing
rawEd25519Signer
Section titled “rawEd25519Signer”RawEd25519Signer
A callback function that signs raw bytes using the ed25519 private key
sendingAddress?
Section titled “sendingAddress?”The address that will be used as the sender of transactions. If not provided, defaults to the address derived from the ed25519 public key. This is useful when signing for a rekeyed account where the sending address differs from the auth address.
Returns
Section titled “Returns”object
An object containing the sending address and various signer functions
addr:
Readonly<Address>
lsigSigner
Section titled “lsigSigner”lsigSigner:
DelegatedLsigSigner
mxBytesSigner
Section titled “mxBytesSigner”mxBytesSigner:
MxBytesSigner
programDataSigner
Section titled “programDataSigner”programDataSigner:
ProgramDataSigner
signer
Section titled “signer”signer:
TransactionSigner