Exemplo n.º 1
0
 /// <summary>
 ///     Verify the provided data and signature match this keypair's public key.
 /// </summary>
 /// <param name="data">The data that was signed.</param>
 /// <param name="signature">The signature.</param>
 /// <returns>True if they match, false otherwise.</returns>
 public bool Verify(byte[] data, xdr.Signature signature)
 {
     return(Verify(data, signature.InnerValue));
 }
Exemplo n.º 2
0
 public static void Encode(XdrDataOutputStream stream, SignedSurveyRequestMessage encodedSignedSurveyRequestMessage)
 {
     Signature.Encode(stream, encodedSignedSurveyRequestMessage.RequestSignature);
     SurveyRequestMessage.Encode(stream, encodedSignedSurveyRequestMessage.Request);
 }