Class NTP1ScriptHelpers
Description of NTP1Script.
Inheritance
System.Object
NTP1ScriptHelpers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: VEDriversLite.dll
Syntax
public class NTP1ScriptHelpers
Fields
|
Improve this Doc
View Source
Declaration
public const string ProtocolHeader = "4e54"
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
_CalculateAmountSize(Byte)
Declaration
public static int _CalculateAmountSize(byte val)
Parameters
Type |
Name |
Description |
System.Byte |
val |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
_NTP1ByteArrayToNum(Byte[])
Declaration
public static ulong _NTP1ByteArrayToNum(byte[] byteval)
Parameters
Type |
Name |
Description |
System.Byte[] |
byteval |
|
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
_NTP1CreateIsseueScript(List<NTP1Instructions>, Byte[], String, IssuanceFlags)
Declaration
public static string _NTP1CreateIsseueScript(List<NTP1Instructions> TIs, byte[] metadata, string tokenSymbol, IssuanceFlags flags)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
_NTP1CreateTransferScript(List<NTP1Instructions>, Byte[])
Declaration
public static string _NTP1CreateTransferScript(List<NTP1Instructions> TIs, byte[] metadata)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<NTP1Instructions> |
TIs |
|
System.Byte[] |
metadata |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
_NTP1NumToByteArray(UInt64)
Declaration
public static byte[] _NTP1NumToByteArray(ulong amount)
Parameters
Type |
Name |
Description |
System.UInt64 |
amount |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
_NTP1ParseScript(NTP1Transactions)
Declaration
public static void _NTP1ParseScript(NTP1Transactions tx)
Parameters
|
Improve this Doc
View Source
ByteArrayErase(Byte[], Int64)
Declaration
public static byte[] ByteArrayErase(byte[] arr, long length)
Parameters
Type |
Name |
Description |
System.Byte[] |
arr |
|
System.Int64 |
length |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
ConvertByteArrayToHexString(Byte[])
Declaration
public static string ConvertByteArrayToHexString(byte[] arr)
Parameters
Type |
Name |
Description |
System.Byte[] |
arr |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ConvertHexStringToByteArray(String)
Declaration
public static byte[] ConvertHexStringToByteArray(string hexString)
Parameters
Type |
Name |
Description |
System.String |
hexString |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
IssuanceFlagsToByte(IssuanceFlags)
Declaration
public static byte IssuanceFlagsToByte(IssuanceFlags flags)
Parameters
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
IsTokenSymbolCharValid(Char)
Declaration
public static bool IsTokenSymbolCharValid(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ParseAmountFromLongEnoughString(String, out Int32)
Declaration
public static ulong ParseAmountFromLongEnoughString(string BinAmountStartsAtByte0, out int rawSize)
Parameters
Type |
Name |
Description |
System.String |
BinAmountStartsAtByte0 |
|
System.Int32 |
rawSize |
|
Returns
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
ParseIssuanceFlag(Byte)
Declaration
public static IssuanceFlags ParseIssuanceFlag(byte flags)
Parameters
Type |
Name |
Description |
System.Byte |
flags |
|
Returns
|
Improve this Doc
View Source
ParseIssueTransaction(NTP1Transactions, Byte[])
Declaration
public static void ParseIssueTransaction(NTP1Transactions tx, byte[] scriptbin)
Parameters
|
Improve this Doc
View Source
ParseTokenSymbolFromLongEnoughString(String)
Declaration
public static string ParseTokenSymbolFromLongEnoughString(string binTokenSymbolStartsAtByte0)
Parameters
Type |
Name |
Description |
System.String |
binTokenSymbolStartsAtByte0 |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ParseTransferTransaction(NTP1Transactions, Byte[])
Declaration
public static void ParseTransferTransaction(NTP1Transactions tx, byte[] scriptbin)
Parameters
|
Improve this Doc
View Source
ReverseBits(Byte)
Declaration
public static byte ReverseBits(byte b)
Parameters
Type |
Name |
Description |
System.Byte |
b |
|
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
ReverseString(String)
Declaration
public static string ReverseString(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
UnhexToByteArray(String)
Convert the hex string to bytes
Declaration
public static byte[] UnhexToByteArray(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
UnhexToString(String)
Declaration
public static string UnhexToString(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.String |
|