public void Sign(PrivateKey privateKey, Transaction tx, bool _) { throw new InvalidOperationException($"{nameof(NullEthereumEcdsa)} does not expect any calls"); }
public Signature Sign(PrivateKey privateKey, Keccak message) { throw new InvalidOperationException($"{nameof(NullEthereumEcdsa)} does not expect any calls"); }
private byte[] Decrypt(PublicKey ephemeralPublicKey, PrivateKey privateKey, byte[] iv, byte[] ciphertextBody, byte[] macData) { IIesEngine iesEngine = MakeIesEngine(false, ephemeralPublicKey, privateKey, iv); return(iesEngine.ProcessBlock(ciphertextBody, 0, ciphertextBody.Length, macData)); }
private bool Equals(PrivateKey other) { return(Bytes.AreEqual(KeyBytes, other.KeyBytes)); }
public ProtectedPrivateKey Create(PrivateKey privateKey) => new ProtectedPrivateKey(privateKey, _random, _timestamper);