SignerEntry
public struct SignerEntry : Sendable
One key-value pair in the signers map of the AuthPayload.
Stored as a list rather than a Swift dictionary so that codecs can preserve insertion
order, perform deterministic upserts, and treat repeated insertions of the same key
as in-place updates rather than reorderings. Swift protocol existentials
(any OZSmartAccountSigner) cannot satisfy Hashable, which prevents using the signer
as a dictionary key; the list-of-pairs form is the idiomatic Swift equivalent of a
mutable signer-to-bytes map.
The struct conforms to Sendable because both stored properties are Sendable:
OZSmartAccountSigner is declared : Sendable and Data is unconditionally Sendable.
Passing individual SignerEntry values across actor boundaries is safe; sharing the
mutable OZSmartAccountAuthPayload.signers array across boundaries is not (see the
thread-safety note on OZSmartAccountAuthPayload).
-
The signer for this entry.
Declaration
Swift
public let signer: any OZSmartAccountSigner -
The signature bytes for this signer, as stored in the on-wire
AuthPayload.signersMap<Signer, Bytes>value. SeetoAuthPayloadBytes()for the per-variant byte format.Declaration
Swift
public let signatureBytes: Data -
Undocumented
Declaration
Swift
public init(signer: any OZSmartAccountSigner, signatureBytes: Data)
View on GitHub
Install in Dash