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.
Inheritance
object
LogicsigSignature
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Assembly: Algorand.dll
Syntax
[JsonObject]
public class LogicsigSignature
Constructors
|
Improve this Doc
View Source
LogicsigSignature()
Uninitialized object used for serializer to ignore default values.
Declaration
public LogicsigSignature()
|
Improve this Doc
View Source
LogicsigSignature(byte[], List<byte[]>, byte[], MultisigSignature)
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
|
System.Collections.Generic.List<T><byte[]> |
args |
Unsigned logicsig object's arguments
|
byte[] |
sig |
|
MultisigSignature |
msig |
|
Fields
|
Improve this Doc
View Source
Args
Declaration
[JsonProperty(PropertyName = "arg")]
public List<byte[]> Args
Field Value
Type |
Description |
System.Collections.Generic.List<T><byte[]> |
|
|
Improve this Doc
View Source
Logic
Declaration
[JsonProperty(PropertyName = "l")]
public byte[] Logic
Field Value
|
Improve this Doc
View Source
Msig
Declaration
[JsonProperty(PropertyName = "msig")]
public MultisigSignature Msig
Field Value
|
Improve this Doc
View Source
Sig
Declaration
[JsonProperty(PropertyName = "sig")]
public Signature Sig
Field Value
Properties
|
Improve this Doc
View Source
Address
The address of the LogicsigSignature
Declaration
[JsonIgnore]
public Address Address { get; }
Property Value
Methods
|
Improve this Doc
View Source
AppendToLogicsig(LogicsigSignature, Account)
Appends a signature to multisig logic signed transaction
Declaration
public void AppendToLogicsig(LogicsigSignature lsig, Account signingAccount)
Parameters
|
Improve this Doc
View Source
BytesToSign()
Return prefixed program as byte array that is ready to sign
Declaration
public byte[] BytesToSign()
Returns
Type |
Description |
byte[] |
byte array
|
|
Improve this Doc
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
object.Equals(object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
object.GetHashCode()
|
Improve this Doc
View Source
ShouldSerializeArgs()
Declaration
public bool ShouldSerializeArgs()
Returns
|
Improve this Doc
View Source
Sign(Account)
Sign LogicSig with account's secret key
Declaration
public void Sign(Account signingAccount)
Parameters
Type |
Name |
Description |
Account |
signingAccount |
|
|
Improve this Doc
View Source
SignLogicsig(Account, MultisigAddress)
Declaration
public void SignLogicsig(Account signingAccount, MultisigAddress ma)
Parameters
|
Improve this Doc
View Source
SignLogicsig(Account)
Sign LogicSig with account's secret key
Declaration
public void SignLogicsig(Account signingAccount)
Parameters
Type |
Name |
Description |
Account |
signingAccount |
|
|
Improve this Doc
View Source
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
|
|
Improve this Doc
View Source
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
|