Serializes an array of Approvals into a Uint8Array typed byte array. This is used to store or transmit the approvals associated with a deploy.
Approval
Uint8Array
A Uint8Array typed byte array that can be deserialized back into an array of Approval objects.
const approvals = [new Approval(publicKey, signature)];const serializedApprovals = serializeApprovals(approvals);
An array of Approval objects that represent signatures from accounts that have approved the deploy.
Generated using TypeDoc
Serializes an array of
Approval
s into aUint8Array
typed byte array. This is used to store or transmit the approvals associated with a deploy.Returns
A
Uint8Array
typed byte array that can be deserialized back into an array ofApproval
objects.Example