-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStructs.cs
More file actions
30 lines (28 loc) · 882 Bytes
/
Structs.cs
File metadata and controls
30 lines (28 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace li.qubic.transfertool
{
[StructLayout(LayoutKind.Sequential, Pack = 0)]
public struct SignedTransaction
{
public Transaction transaction;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
public byte[] signature;
};
[StructLayout(LayoutKind.Sequential, Pack = 0)]
public struct Transaction
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
public byte[] sourcePublicKey;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
public byte[] destinationPublicKey;
public long amount;
public uint tick;
public ushort inputType;
public ushort inputSize;
}
}