Exemplo n.º 1
0
//C++ TO C# CONVERTER WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: bool getPublicKey(Crypto::PublicKey& pk) const
        public bool getPublicKey(ref Crypto.PublicKey pk)
        {
            CryptoNote.TransactionExtraPublicKey extraPk = new CryptoNote.TransactionExtraPublicKey();
            if (!get(ref extraPk))
            {
                return(false);
            }
            pk = extraPk.publicKey;
            return(true);
        }
Exemplo n.º 2
0
 public static void generateViewFromSpend(Crypto.SecretKey spend, Crypto.SecretKey viewSecret)
 {
     /* If we don't need the pub key */
     Crypto.PublicKey unused_dummy_variable = new Crypto.PublicKey();
     generateViewFromSpend(spend, viewSecret, unused_dummy_variable);
 }
Exemplo n.º 3
0
        public static void generateViewFromSpend(Crypto.SecretKey spend, Crypto.SecretKey viewSecret, Crypto.PublicKey viewPublic)
        {
            Crypto.SecretKey viewKeySeed = new Crypto.SecretKey();

            GlobalMembers.keccak((ushort)spend, sizeof(Crypto.SecretKey), (ushort)viewKeySeed, sizeof(Crypto.SecretKey));

            Crypto.generate_deterministic_keys(viewPublic, viewSecret, viewKeySeed);
        }
Exemplo n.º 4
0
 public abstract string createAddress(Crypto.PublicKey spendPublicKey);