public static string GenerateId <T>(this T transaction) where T : Transaction
        {
            var bodyBytes = transaction.GetIdBytes();

            return(AddressEncoding.FastHash(bodyBytes, 0, bodyBytes.Length).ToBase58());
        }
Exemplo n.º 2
0
        public static string GenerateId(this Order order)
        {
            var bytes = order.GetBody();

            return(AddressEncoding.FastHash(bytes, 0, bytes.Length).ToBase58());
        }
Exemplo n.º 3
0
        public static byte[] GenerateBinaryId <T>(this T transaction) where T : Transaction
        {
            var bodyBytes = transaction.GetIdBytes();

            return(AddressEncoding.FastHash(bodyBytes, 0, bodyBytes.Length));
        }
Exemplo n.º 4
0
        public static byte[] GenerateBinaryId <T>(this T transaction) where T : Transaction
        {
            var txBytesForId = transaction.GetBytesForId();

            return(AddressEncoding.FastHash(txBytesForId, 0, txBytesForId.Length));
        }