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