Пример #1
0
        public ExtPubKey Derive(uint index)
        {
            var childPubKey = pubkey.Derivate(this.vchChainCode, index, out var chainCode);
            var result      = new ExtPubKey(childPubKey, chainCode, (byte)(nDepth + 1), new HDFingerprint(PubKey), index);

            return(result);
        }
Пример #2
0
        public ExtPubKey Derive(uint index)
        {
            var result = new ExtPubKey
            {
                nDepth         = (byte)(nDepth + 1),
                vchFingerprint = CalculateChildFingerprint(),
                nChild         = index
            };

            result.pubkey = pubkey.Derivate(this.vchChainCode, index, out result.vchChainCode);
            return(result);
        }