예제 #1
0
        private void GenerateWalletKeys()
        {
            int numKeys = 100;

            for (uint index = 0; index < numKeys; index++)
            {
                KeyPath   keyPath = new KeyPath(0, index);
                WalletKey newKey  = new WalletKey(_masterkey, keyPath, _network);
                _keys.Add(newKey);
            }
        }
예제 #2
0
        private void GenerateNextWalletKey()
        {
            this.GetNextScriptPubKey();
            var       newIndex = _private_key_pool_size;
            KeyPath   keypath  = new KeyPath(0, newIndex);
            WalletKey newKey   = new WalletKey(_masterkey, keypath, NetworkChoice);

            Keys.Add(newKey);

            _private_key_pool_size++;
        }
예제 #3
0
        private void GenerateWalletKeys()
        {
            uint numKeys = 100;

            for (uint i = 0; i < numKeys; i++)
            {
                KeyPath   path   = new KeyPath(0, i);
                WalletKey newKey = new WalletKey(_masterkey, path, _net);
                _walletkeys.Add(newKey);
            }
        }
예제 #4
0
        private void InitializeWalletKeys()
        {
            this.GetNextScriptPubKey();

            uint numKnownScripts = (uint)this.GetKnownScripts().Length;

            for (uint index = 0; index < numKnownScripts; index++)
            {
                var key = _masterkey.Derive(0).Derive(index);

                KeyPath   keypath = new KeyPath(0, index);
                WalletKey newKey  = new WalletKey(_masterkey, keypath, NetworkChoice);
                Keys.Add(newKey);
            }
        }