Class MultisigSignature
Serializable raw multisig class.
Inherited Members
Namespace: Algorand
Assembly: Algorand.dll
Syntax
[JsonObject]
[MessagePackObject(false)]
public class MultisigSignature
Constructors
| Edit this page View SourceMultisigSignature()
Declaration
public MultisigSignature()
MultisigSignature(int, int, List<MultisigSubsig>)
create a multisig signature.
Declaration
[JsonConstructor]
public MultisigSignature(int version, int threshold, List<MultisigSubsig> subsigs = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | version | required |
| int | threshold | required |
| List<MultisigSubsig> | subsigs | can be empty or null |
Properties
| Edit this page View SourceSubsigs
Declaration
[JsonProperty(PropertyName = "subsig")]
[Key("subsig")]
public List<MultisigSubsig> Subsigs { get; set; }
Property Value
| Type | Description |
|---|---|
| List<MultisigSubsig> |
Threshold
Declaration
[JsonProperty(PropertyName = "thr")]
[Key("thr")]
public int Threshold { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Version
Declaration
[JsonProperty(PropertyName = "v")]
[Key("v")]
public int Version { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceEquals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceShouldSerializeSubsigs()
Declaration
public bool ShouldSerializeSubsigs()
Returns
| Type | Description |
|---|---|
| bool |
Verify(byte[])
Performs signature verification
Declaration
public bool Verify(byte[] message)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | message | raw message to verify |
Returns
| Type | Description |
|---|---|
| bool | bool |