/** * Derive each HK child and produce a new MultisigHD object * * @param int|string $sequence * @return MultisigHD */ public function deriveChild($sequence) { $keys = array_map(function (HierarchicalKey $hk) use($sequence) { return $hk->deriveChild($sequence); }, $this->keys); if ($this->sort) { $keys = $this->sortHierarchicalKeys($keys); } return new self($this->m, $this->path . '/' . $this->sequences->getNode($sequence), $keys, $this->sequences, $this->sort); }
/** * Derive each HK child and produce a new MultisigHD object * * @param int|string $sequence * @return MultisigHD */ public function deriveChild($sequence) { return new self($this->m, $this->path . "/" . $this->sequences->getNode($sequence), array_map(function (HierarchicalKey $hk) use($sequence) { return $hk->deriveChild($sequence); }, $this->keys), $this->sequences, $this->sort); }