Class TEALProgram
TEALProgram
Inheritance
object
TEALProgram
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Algorand
Assembly: Algorand.dll
Syntax
[JsonConverter(typeof(BytesConverter))]
public class TEALProgram
Constructors
| Improve this Doc View SourceTEALProgram()
default values for serializer to ignore
Declaration
public TEALProgram()
TEALProgram(byte[])
Initialize a TEALProgram based on the byte array.An ArgumentException is thrown if the program is invalid.
Declaration
[JsonConstructor]
public TEALProgram(byte[] program)
Parameters
Type | Name | Description |
---|---|---|
byte[] | program | program |
TEALProgram(string)
Initialize a TEALProgram based on the base64 encoding. A runtime exception is thrown if the program is invalid.
Declaration
public TEALProgram(string base64String)
Parameters
Type | Name | Description |
---|---|---|
string | base64String | base64String |
Properties
| Improve this Doc View SourceBytes
Declaration
public byte[] Bytes { get; }
Property Value
Type | Description |
---|---|
byte[] |
Methods
| Improve this Doc View SourceSign(byte[], Account)
Creates Signature compatible with ed25519verify TEAL opcode from data and program bytes
Declaration
public Signature Sign(byte[] data, Account signingAccount)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | data byte[] |
Account | signingAccount |
Returns
Type | Description |
---|---|
Signature | Signature |
Validate(out string)
Validate the TEAL Program against known langspec
Declaration
public bool Validate(out string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
string | errorMessage | Error message if error |
Returns
Type | Description |
---|---|
bool | false |