Ejemplo n.º 1
0
 public static AuthenticatedMessageV0 Decode(XdrDataInputStream stream)
 {
     var decodedAuthenticatedMessageV0 = new AuthenticatedMessageV0();
     decodedAuthenticatedMessageV0.Sequence = Uint64.Decode(stream);
     decodedAuthenticatedMessageV0.Message = StellarMessage.Decode(stream);
     decodedAuthenticatedMessageV0.Mac = HmacSha256Mac.Decode(stream);
     return decodedAuthenticatedMessageV0;
 }
Ejemplo n.º 2
0
            public static AuthenticatedMessageV0 Decode(IByteReader stream)
            {
                AuthenticatedMessageV0 decodedAuthenticatedMessageV0 = new AuthenticatedMessageV0();

                decodedAuthenticatedMessageV0.Sequence = Uint64.Decode(stream);
                decodedAuthenticatedMessageV0.Message  = StellarMessage.Decode(stream);
                decodedAuthenticatedMessageV0.Mac      = HmacSha256Mac.Decode(stream);
                return(decodedAuthenticatedMessageV0);
            }