Smart Account Auth Payload Codec
object SmartAccountAuthPayloadCodec
Codec for reading and writing SmartAccountAuthPayload to/from SCValXdr.
Handles the v0.7.0 OZ smart account contract AuthPayload format, which is a named struct (Map-based) with fields context_rule_ids and signers.
Functions
Link copied to clipboard
Reads an SmartAccountAuthPayload from its SCValXdr representation.
Link copied to clipboard
Parses a SmartAccountSigner from its SCValXdr representation.
Link copied to clipboard
fun upsertSigner(payload: SmartAccountAuthPayload, signer: SmartAccountSigner, signatureBytes: ByteArray)
Upserts a signer entry in the payload.
Link copied to clipboard
Writes an SmartAccountAuthPayload to its SCValXdr representation.