Skip to content

MultiSignature

MarcoDotIO edited this page Jul 6, 2023 · 2 revisions

MultiSignature

The ED25519 Multi-Signature

public struct MultiSignature: EncodingProtocol, Equatable, KeyProtocol 

Inheritance

EncodingProtocol, Equatable, KeyProtocol

Initializers

init(publicKey:signatureMap:)

public init(publicKey: MultiPublicKey, signatureMap: [(PublicKey, Signature)]) 

Properties

signatures

The signatures themselves

public var signatures: [Signature]

bitmap

The compact representation of which keys among a set of N possible keys have signed a given message

public var bitmap: Data

Methods

toBytes()

Serialize the concatenated signatures and bitmap of an ED25519 Multi-signature instance to a Data object.

public func toBytes() -> Data 

This function concatenates the signatures of the instance and serializes the concatenated signatures and bitmap to a Data object.

Returns

A Data object containing the serialized concatenated signatures and bitmap.

serialize(_:)

Serializes an output instance using the given Serializer.

public func serialize(_ serializer: Serializer) throws 

Parameters

  • serializer: The Serializer instance used to serialize the data.

Throws

An error if the serialization fails.

deserialize(from:)

public static func deserialize(from deserializer: Deserializer) throws -> MultiSignature 
Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally