public ECDSASignature Sign(uint256 hash) { AssertPrivateKey(); var signer = new DeterministicECDSA(); signer.setPrivateKey(PrivateKey); var sig = ECDSASignature.FromDER(signer.signHash(hash.ToBytes())); return sig.MakeCanonical(); }
public ECDSASignature Sign(uint256 hash, bool useLowR = true) { AssertPrivateKey(); var signer = new DeterministicECDSA(useLowR); signer.setPrivateKey(PrivateKey); var sig = ECDSASignature.FromDER(signer.signHash(hash.ToBytes())); return(sig.MakeCanonical()); }
public virtual ECDSASignature Sign(byte[] hash) { AssertPrivateKey(); var signer = new DeterministicECDSA(); signer.setPrivateKey(PrivateKey); var sig = ECDSASignature.FromDER(signer.signHash(hash)); return(sig.MakeCanonical()); }
public ECDSASignature Sign(uint256 hash) { AssertPrivateKey(); var signer = new DeterministicECDSA(); signer.setPrivateKey(this.PrivateKey); ECDSASignature sig = ECDSASignature.FromDER(signer.signHash(hash.ToBytes())); return(sig.MakeCanonical()); }
public virtual ECDSASignature Sign(byte[] hash) { AssertPrivateKey(); var signer = new DeterministicECDSA(); signer.setPrivateKey(PrivateKey); var sig = ECDSASignature.FromDER(signer.signHash(hash)); return sig.MakeCanonical(); }