public function testDefinitionTuple() { $masterKey = BIP32::master_key("000102030405060708090a0b0c0d0e0f", "bitcoin", false); $this->assertEquals("00000003", BIP32::calc_address_bytes("3", false)); $this->assertEquals("80000003", BIP32::calc_address_bytes("3", true)); $this->assertEquals("00000003", BIP32::calc_address_bytes("3'", false)); $this->assertEquals("80000003", BIP32::calc_address_bytes("3'", true)); $this->assertEquals(["00000003", "00000003", "00000003", "00000000"], BIP32::get_definition_tuple($masterKey[0], "m/3/3/3")); $this->assertEquals(["00000003", "80000003", "00000003", "00000000"], BIP32::get_definition_tuple($masterKey[0], "m/3/3'/3")); }