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); }
public ECSignature Sign(byte[] message) { return(_ecPrivateSecurityService.Sign(message)); }