Esempio n. 1
0
        public string SignTransaction(Transaction t, string publicKey, string privateKey)
        {
            //initialize public and private keys for the crypto provider
            _cryptoProvider.ImportPublicKey(publicKey);
            _cryptoProvider.ImportPrivateKey(privateKey);

            //call the sign-address method on the Crypto Providers AddressEncoder
            return(t.Signature = _cryptoProvider.SignMessage(t.ToString()));
        }
Esempio n. 2
0
 public void Sign(CryptoProvider.ICryptoProvider provider, string privateKey, string publicKey)
 {
     Signature = provider.SignMessage(ToString(), provider.PrivateKeyFromBase64(privateKey), provider.PublicKeyFromBase64(publicKey));
 }