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); }
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); }
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); }
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); }