Beispiel #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), PubKey.GetHDFingerPrint(), index);

            return(result);
        }
Beispiel #2
0
        public ExtPubKey Derive(uint nChild)
        {
            var result = new ExtPubKey();

            result.nDepth         = (byte)(nDepth + 1);
            result.vchFingerprint = CalculateChildFingerprint();
            result.nChild         = nChild;
            result.pubkey         = pubkey.Derivate(this.vchChainCode, nChild, out result.vchChainCode);
            return(result);
        }
Beispiel #3
0
        public ExtPubKey Derive(uint nChild)
        {
            var result = new ExtPubKey();

            result.nDepth         = (byte)(nDepth + 1);
            result.vchFingerprint = pubkey.ID.ToBytes().Take(result.vchFingerprint.Length).ToArray();
            result.nChild         = nChild;
            result.pubkey         = pubkey.Derivate(this.vchChainCode, nChild, out result.vchChainCode);
            return(result);
        }
Beispiel #4
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);
        }