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

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

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

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

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