func (db *DB) GetAddressNode(address [4]byte) [33]byte {
	// Get the head of the binaryTree
	var head = db.addressTreeHead
	//Get the address so we know the path in the binaryTree
	var bitAddress = byteToBit(address)

	for i := 0; i < len(bitAddress); i++ {
		if bitAddress[i] {
			head = head.rightChild()
			if head == nil {
				return [33]byte{}
			}
		} else {
			head = head.leftChild()
			if head == nil {
				return [33]byte{}
			}
		}
	}

	return (head.getData().(*addressInfo)).nodePubKey
}
//GetAddressNode returns the public key associated with a certain LDR address
GetAddressNode returns the public key associated with a certain LDR address
// GetAddressNode returns the public key associated with a certain LDR address
func (db *DB) GetAddressNode(address [4]byte) [33]byte {
	var head = db.addressTreeHead
	var bitAddress = byteToBit(address)
	for i := 0; i < len(bitAddress); i++ {
		if bitAddress[i] {
			head = head.rightChild()
			if head == nil {
				return [33]byte{}
			}
		} else {
			head = head.leftChild()
			if head == nil {
				return [33]byte{}
			}
		}
	}
	return (head.getData().(*addressInfo)).nodePubKey
}
func ( db * DB ) GetAddressNode ( address [ 4 ] byte ) [ 33 ] byte { var head = db . addressTreeHead var bitAddress = byteToBit ( address ) for i := 0 ; i < len ( bitAddress ) ; i ++ { if bitAddress [ i ] { head = head . rightChild ( ) if head == nil { return [ 33 ] byte { } } } else { head = head . leftChild ( ) if head == nil { return [ 33 ] byte { } } } } return ( head . getData ( ) . ( * addressInfo ) ) . nodePubKey }
GetAddressNode returns the public key associated with a certain LDR address
GetAddressNode returns the public key associated with a certain LDR address
// Get the head of the binaryTree //Get the address so we know the path in the binaryTree