SmartAccountAuthPayload

data class SmartAccountAuthPayload(val signers: MutableMap<SmartAccountSigner, ByteArray>, val contextRuleIds: List<UInt>)

Represents the v0.7.0 AuthPayload format used by the OZ smart account contract.

In v0.7.0, the signature payload changed from a Vec-based tuple struct to a Map-based named struct with two fields: context_rule_ids and signers.

Contract representation:

ScVal::Map([
{ key: Symbol("context_rule_ids"), val: Vec([U32(id), ...]) },
{ key: Symbol("signers"), val: Map([{ key: signer.toScVal(), val: Bytes(sig) }, ...]) }
])

Constructors

Link copied to clipboard
constructor(signers: MutableMap<SmartAccountSigner, ByteArray>, contextRuleIds: List<UInt>)

Properties

Link copied to clipboard

The context rule IDs bound into the signing digest.

Link copied to clipboard

Mutable map from signer to their double-XDR-encoded signature bytes.