Esempio n. 1
0
 public void Sign(PrivateKey privateKey, Transaction tx, bool _)
 {
     throw new InvalidOperationException($"{nameof(NullEthereumEcdsa)} does not expect any calls");
 }
Esempio n. 2
0
 public Signature Sign(PrivateKey privateKey, Keccak message)
 {
     throw new InvalidOperationException($"{nameof(NullEthereumEcdsa)} does not expect any calls");
 }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
 private bool Equals(PrivateKey other)
 {
     return(Bytes.AreEqual(KeyBytes, other.KeyBytes));
 }
 public ProtectedPrivateKey Create(PrivateKey privateKey) => new ProtectedPrivateKey(privateKey, _random, _timestamper);