示例#1
0
        public void PrivateKey_Sign_ReturnsExpectedSignatureDer()
        {
            var privateKey  = new ECPrivateSecurityService(_privateKey);
            var messageHash = HashUtil.Blake256(_message);
            var signature   = privateKey.Sign(messageHash).Serialize();

            Assert.Equal(_signature, signature);
        }
示例#2
0
 public ECSignature Sign(byte[] message)
 {
     return(_ecPrivateSecurityService.Sign(message));
 }