MultisigAggregatedSignature
Namespace: IotaSdk
Aggregated signature from members of a multisig committee.
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public class MultisigAggregatedSignature : IMultisigAggregatedSignature, System.IEquatable`1[[IotaSdk.MultisigAggregatedSignature, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → MultisigAggregatedSignature
Implements IMultisigAggregatedSignature, IEquatable<MultisigAggregatedSignature>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
MultisigAggregatedSignature(UInt64)
public MultisigAggregatedSignature(ulong pointer)
Parameters
pointer UInt64
MultisigAggregatedSignature(UserSignature[], MultisigCommittee)
Construct a MultisigAggregatedSignature from a list of UserSignatures and a
MultisigCommittee.
This:
- validates
committeeviaMultisigCommittee::validate, except that a committee mixing Ed25519 with other key schemes is accepted when every member provides a signature; - converts each
UserSignatureinto aMultisigMemberSignature; - derives the
bitmapby locating each signature's public key in the committee, rejecting duplicates and signatures from non-members; - rejects empty signature lists and lists longer than the committee.
The caller must provide signatures in the same order as their corresponding members in
committee: for committee [pk1, pk2, pk3, pk4, pk5], [sig1, sig2, sig5] is valid but
[sig2, sig1, sig5] is not.
public MultisigAggregatedSignature(UserSignature[] signatures, MultisigCommittee committee)
Parameters
signatures UserSignature[]
committee MultisigCommittee
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Bitmap()
The bitmap that indicates which committee members provided their signature.
public ushort Bitmap()
Returns
Committee()
public MultisigCommittee Committee()
Returns
DeriveAddress()
Derive the Address of the committee that produced this signature.
See MultisigCommittee::derive_address.
public Address DeriveAddress()
Returns
Signatures()
The list of signatures from committee members
public MultisigMemberSignature[] Signatures()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()
Returns
Exceptions
Equals(MultisigAggregatedSignature)
public bool Equals(MultisigAggregatedSignature? other)
Parameters
other MultisigAggregatedSignature?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static MultisigAggregatedSignature FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static MultisigAggregatedSignature FromJson(string json)
Parameters
json String