Ejemplo n.º 1
0
 public void GenerateNewAccountFileMod(string pass, string path)
 {
     var ecKey      = EthECKey.GenerateKey();
     var privateKey = ecKey.GetPrivateKeyAsBytes().ToHex();
     // var account = new Account(privateKey);
 }
 private BigInteger GetChainFromVChain()
 {
     return(EthECKey.GetChainFromVChain(Signature.V.ToBigIntegerFromRLPDecoded()));
 }
Ejemplo n.º 3
0
 private void Initialise(EthECKey key)
 {
     _privateKey = key.GetPrivateKey();
     Address     = key.GetPublicAddress();
     InitialiseDefaultTransactionManager();
 }
 public override void Sign(EthECKey key)
 {
     SimpleRlpSigner.Sign(key, GetChainIdAsBigInteger());
 }
Ejemplo n.º 5
0
 public Account(EthECKey key)
 {
     Initialise(key);
 }