Class LogicsigSignature
Serializable logicsig class. LogicsigSignature is constructed from a program and optional arguments. Signature sig and MultisigSignature msig property are available for modification by it's clients.
Inherited Members
Namespace: Algorand
Assembly: Algorand.dll
Syntax
[JsonObject]
[MessagePackObject(false)]
public class LogicsigSignature
Constructors
| Edit this page View SourceLogicsigSignature()
Uninitialized object used for serializer to ignore default values.
Declaration
public LogicsigSignature()
LogicsigSignature(byte[], List<byte[]>, byte[], MultisigSignature)
LogicsigSignature
Declaration
[JsonConstructor]
public LogicsigSignature(byte[] logic, List<byte[]> args = null, byte[] sig = null, MultisigSignature msig = null)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | logic | Unsigned logicsig object |
| List<byte[]> | args | Unsigned logicsig object's arguments |
| byte[] | sig | |
| MultisigSignature | msig |
Properties
| Edit this page View SourceAddress
The address of the LogicsigSignature
Declaration
[JsonIgnore]
[IgnoreMember]
public Address Address { get; }
Property Value
| Type | Description |
|---|---|
| Address |
Args
Declaration
[JsonProperty(PropertyName = "arg")]
[Key("arg")]
public List<byte[]> Args { get; set; }
Property Value
| Type | Description |
|---|---|
| List<byte[]> |
Logic
Declaration
[JsonProperty(PropertyName = "l")]
[Key("l")]
public byte[] Logic { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Msig
Declaration
[JsonProperty(PropertyName = "msig")]
[Key("msig")]
public MultisigSignature Msig { get; set; }
Property Value
| Type | Description |
|---|---|
| MultisigSignature |
Sig
Declaration
[JsonProperty(PropertyName = "sig")]
[Key("sig")]
public Signature Sig { get; set; }
Property Value
| Type | Description |
|---|---|
| Signature |
Methods
| Edit this page View SourceAppendToLogicsig(LogicsigSignature, Account)
Appends a signature to multisig logic signed transaction
Declaration
public void AppendToLogicsig(LogicsigSignature lsig, Account signingAccount)
Parameters
| Type | Name | Description |
|---|---|---|
| LogicsigSignature | lsig | LogicsigSignature append to |
| Account | signingAccount |
BytesToSign()
Return prefixed program as byte array that is ready to sign
Declaration
public byte[] BytesToSign()
Returns
| Type | Description |
|---|---|
| byte[] | byte array |
Equals(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 SourceShouldSerializeArgs()
Declaration
public bool ShouldSerializeArgs()
Returns
| Type | Description |
|---|---|
| bool |
Sign(Account)
Sign LogicSig with account's secret key
Declaration
public void Sign(Account signingAccount)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | signingAccount |
SignLogicsig(Account)
Sign LogicSig with account's secret key
Declaration
public void SignLogicsig(Account signingAccount)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | signingAccount |
SignLogicsig(Account, MultisigAddress)
Declaration
public void SignLogicsig(Account signingAccount, MultisigAddress ma)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | signingAccount | |
| MultisigAddress | ma |
ToAddress()
alculate escrow address from logic sig program DEPRECATED Please use Address property. The address of the LogicsigSignature
Declaration
public Address ToAddress()
Returns
| Type | Description |
|---|---|
| Address | The address of the LogicsigSignature |
Verify(Address)
Perform signature verification against the sender address
Declaration
public bool Verify(Address address)
Parameters
| Type | Name | Description |
|---|---|---|
| Address | address | Address to verify |
Returns
| Type | Description |
|---|---|
| bool | bool |