Пример #1
0
 // Get balance of given address
 public static long Balance(Bytes address)
 {
     return(0L);
 }
Пример #2
0
 // Concatenate two Bytes
 public Bytes Concat(Bytes other)
 {
     return(null);
 }
Пример #3
0
 public static bool ValidateEd25519Signature(Bytes pubKey, String message, Bytes signature)
 {
     return(false);
 }
Пример #4
0
 public static T Program <T>(Bytes address)
 {
     return(default(T));
 }
Пример #5
0
 public NotEnoughMoney(Bytes address) : base(String.Format("Not enough money on {0}", StdLib.BytesToHex(address)))
 {
 }
Пример #6
0
 public static Bytes Ripemd160(Bytes bytes)
 {
     return(null);
 }
Пример #7
0
 public static T Program <T>(Bytes address)
 {
     throw new PravdaException("Calling other programs is not supported");
 }
Пример #8
0
 public static bool ValidateEd25519Signature(Bytes pubKey, String message, Bytes signature)
 {
     throw new PravdaException("ED25519 signatures are not supported");
 }
Пример #9
0
 public static String BytesToHex(Bytes bytes)
 {
     return(BitConverter.ToString((byte[])(Array)bytes.bytes).Replace("-", ""));
 }
Пример #10
0
 public static Bytes Ripemd160(Bytes bytes)
 {
     throw new PravdaException("RIPEMD160 hashing is not supported");
 }
Пример #11
0
 // Get balance of given address
 public static long Balance(Bytes address)
 {
     return(Sandbox.SandboxValues.Balances[address]);
 }