コード例 #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
ファイル: JetWalletModel.cs プロジェクト: JetJet13/JetWallet
        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);
            }
        }